kea_rajab

Software Engineer at Tanzania

Member Since 9 Months Ago

Arusha

Experience Points
25,740
Total
Experience

4,260 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
235
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start your engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-in-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

  • Community Pillar

    Earned once your experience points ranks in the top 10 of all Laracasts users.

Level 6
25,740 XP
Dec
04
18 hours ago
Activity icon

Commented on Allow For Configuration Hooks

@jeffreyway can you create a series on how to create packages, it will be helpfull for most of the developers binging here... thanks in advance

Activity icon

Replied to Building Laravel Packages

@sinnbeck i will give it try

Activity icon

Replied to Building Laravel Packages

Sure, today i was learning on this series and it is why i raised this concern... as you know jeffery always rushes on things which are not concerning the major topic... so i think there is a need for this kind of series or knowledge

Activity icon

Replied to Building Laravel Packages

Thanks for the feedback,... but i would recommend a dedicated series on this community, since its the coolest place to learn web dev...

Activity icon

Started a new Conversation Building Laravel Packages

I have been wondering, if there was a series on how me as a developer can create a laravel package to help other developers utilize it for a particular problem.... if there is no such series... i would love someone to assist me on this... thanks in advance

Activity icon

Replied to Laravel 8.x Login With Phone Number And Not Email

well, i was curious if you can set your own reply as best answer, and among other weird things, before i started paying for laracast, i could mark episodes complete even if i could not see them, and so i wanted to see if you could have two best answers in one question, or can you give yourself a badge of best reply by giving yourself a best reply, it was just my curiosity! and of course if you happen to contact jeffery right away, you can tell him to fix that marking capabilities to users who are not paying... ;)

Nov
28
6 days ago
Activity icon

Replied to Laravel 8.x Login With Phone Number And Not Email

just solved this problem, hope it will help someone,

<?php

namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Providers\RouteServiceProvider;
use Illuminate\Foundation\Auth\AuthenticatesUsers;

class LoginController extends Controller
{
    /*
    |--------------------------------------------------------------------------
    | Login Controller
    |--------------------------------------------------------------------------
    |
    | This controller handles authenticating users for the application and
    | redirecting them to your home screen. The controller uses a trait
    | to conveniently provide its functionality to your applications.
    |
    */

    use AuthenticatesUsers;

    /**
     * Where to redirect users after login.
     *
     * @var string
     */
    protected $redirectTo = RouteServiceProvider::HOME;

    /**
     * Create a new controller instance.
     *
     * @return void
     */
    public function __construct()
    {
        $this->middleware('guest')->except('logout');
    }

    public function username(){
        return 'phone_number';
    }

}

what i missed is changing the view's email input to phone_number

<input id="phone_number" type="text" placeholder="Phone Number:" class="form-control @error('phone_number') is-invalid @enderror" name="phone_number" required  autofocus>

@error('phone_number')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror

thanks @vixo

Nov
27
1 week ago
Activity icon

Replied to Laravel 8.x Login With Phone Number And Not Email

@vixo in my users table am using phone_number as the columns name, i tried this

return 'phone_number';
}

But it just reloads the login page

Activity icon

Started a new Conversation Laravel 8.x Login With Phone Number And Not Email

I have been trying to solve this enigma by trying to override the username function but what it does is just reloading and brings me back to the login and saying "These credentials do not match our records", sign up works just fine but on this nothing progressive happen, also i have tried overriding the credentials, also not bearing any fruits, here is my logincontroller


namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Providers\RouteServiceProvider;
use Illuminate\Foundation\Auth\AuthenticatesUsers;

class LoginController extends Controller
{
    /*
    |--------------------------------------------------------------------------
    | Login Controller
    |--------------------------------------------------------------------------
    |
    | This controller handles authenticating users for the application and
    | redirecting them to your home screen. The controller uses a trait
    | to conveniently provide its functionality to your applications.
    |
    */

    use AuthenticatesUsers;

    /**
     * Where to redirect users after login.
     *
     * @var string
     */
    protected $redirectTo = RouteServiceProvider::HOME;

    /**
     * Create a new controller instance.
     *
     * @return void
     */
    public function __construct()
    {
        $this->middleware('guest')->except('logout');
        $this->username = $this->findUsername();
    }

    public function findUsername()
    {
        $login = request()->input('email');

        $fieldType = filter_var($login, FILTER_VALIDATE_EMAIL) ? 'email' : 'phone_number';

        request()->merge([$fieldType => $login]);

        return $fieldType;
    }

}

Please help, i have searched but no where to find the proper answer for this solution.

Nov
23
1 week ago
Activity icon

Replied to Laravel 8 From Scratch?

addition on what @talinon said, you will find the small embedded information at the bottom of every series episode on what has already changed depending on what the series you are learning from, for example, personally i have learned from the series called 'laravel from scratch' which has 68 episodes, and uses a laravel 6 if am not mistaken, but due to the addition of those information and using the laravel documentation, i can say am quite competent on laravel 8. Just go ahead and try out the course. Its fun

Nov
22
1 week ago
Activity icon

Replied to Twilio Verification And User Authentication

Haha, that is just wat i just did... thanks @tisuchi

Nov
19
2 weeks ago
Activity icon

Replied to Twilio Verification And User Authentication

i can send text with twilio easily but for the case of verification and using it for authentication is the case here

Activity icon

Replied to Twilio Verification And User Authentication

sure, i did it more than two times and all it does is just refresh the page and sends nothing to the phone number, am currently redoing it again, and still have nothing in return

Activity icon

Replied to Twilio Verification And User Authentication

unfortunately, no matter how hard i tried the last link you just gave me, the page keeps refreshing and nothing happens after configuring each and everything as explained by thecodearcher, all of the other links also i have passed through them but, nothing different in particular happened...

Nov
18
2 weeks ago
Activity icon

Started a new Conversation Twilio Verification And User Authentication

I have been searching for a while, on changing the authentication and verification for users in a website, am using laravel UI --auth, and would love to change it from email to mobile phone number because of the convenience, so far i have find some blog on the twilio site but completely not working, i went for nexmo as an alternative but was not convinced by it and decided to stick with the twilio verify service. My advanced thanks to anyone who will give me a lead on making this thing work out...

Oct
29
1 month ago
Activity icon

Replied to Routing Not Working As Intended

@laracoft i reseted the whole project, started from scratch it works fine now... but i still cant understand what was causing it to act that way. Thank you

Activity icon

Replied to Routing Not Working As Intended

@michaloravec well thanks for that, but it does not solve the problem of routing, furthermore it escalates the problem, icons are now little boxes, and the routes are not working as expected...

Route::get('/', function () { return view('welcome'); });

is the only route working... tried adding other routes but what i get is 404 page

Activity icon

Replied to Routing Not Working As Intended

@michaloravec and how will i do that?

Activity icon

Replied to Routing Not Working As Intended

User-agent:* Disallow:

Activity icon

Replied to Routing Not Working As Intended

Am using xampp and on trying to use the route you recommended, it redirects me to the xampp's homepage, on adding that public it works fine for welcome view but not so well with other routes, defined on web.php file

Activity icon

Started a new Conversation Routing Not Working As Intended

The views are properly in place and the only working route is the home route '/', Other routes registered on web.php are only bringing forth 404, i wonder what went wrong since i used same methods but now they are not working. Also the url is showing https://127.0.0.1/project/public/. Can someone help me on how to change the route folder to public. Am using laravel 8

Oct
27
1 month ago
Activity icon

Replied to Does Laravel Store Assets Outside Public Directory?

Thats true, i see public on my url

Activity icon

Started a new Conversation Does Laravel Store Assets Outside Public Directory?

I did a project which used a bootstrap template and as i thought the best way would be to put the css, js and images file in the public directory, but after doing that, the images can not be changed ant its theme. I tried even uninstalling xampp, but whenever i use the same template with different images and css configuration, i still get the same old images and the same old theme which i changed earlier. I am now wondering whats going on with the directories and where is it fetching these images from because they are completely out of the public directory which i stored later after changing them. Please help...

Oct
17
1 month ago
Activity icon

Commented on Goodbye And Next Steps

it was an amazing series... it realy pushed my skills to another level