BabarKhan

BabarKhan

Member Since 1 Year Ago

Experience Points 10,080
Experience Level 3

4,920 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 95
Lessons
Completed
Best Reply Awards 0
Best Reply
Awards
  • start-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-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-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist 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.

15 Sep
5 days ago

BabarKhan left a reply on Which Is The Best Way To Check Role Of User?

is it okay to use this type of authorization ? or should i go to poilcies ?


<?php

namespace App\Http\Middleware;

use Closure;

class CheckRole
{
    /**
     * Handle the incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @param  string  $role
     * @return mixed
     */
    public function handle($request, Closure $next, $role)
    {
        if (! $request->user()->hasRole($role)) {
            // Redirect...
        }

        return $next($request);
    }

}

BabarKhan started a new conversation Which Is The Best Way To Check Role Of User?

Middleware or Policies ?

10 Sep
1 week ago

BabarKhan started a new conversation Feeling Exhausting While Following TDD With Project ! What Should I Do ?

Feeling exhausting while following TDD with project ! What should i do ?

BabarKhan commented on At A Glance

What a Great Glance !

09 Sep
1 week ago

BabarKhan started a new conversation What If I Change Migrations Name ? Will It Work ?

What if I change migrations name according to my need. ex: (1_create_students_table.php, 2_create_users_table.php, 3_create_departments_table.php)

will it work ?

26 Aug
3 weeks ago

BabarKhan left a reply on How To Migrate Specific Table, For Update The Foreign Key ?

oopss, yes i'ts my mistake. I've just created migration update_users_table before roles_table.

BabarKhan started a new conversation How To Migrate Specific Table, For Update The Foreign Key ?

i've updated foreign key of roles in users table, but when try migration running fresh, first users migration created then it showing error on role id because role table not created before users table.

23 Aug
4 weeks ago

BabarKhan started a new conversation Is There Any Series Or Episode On Multiauth ?

is there any series or episode on multiauth ?

20 Aug
1 month ago

BabarKhan left a reply on How To Use Old() Function With Radio Button

It helped me. Thank you :)

28 Jul
1 month ago

BabarKhan commented on Your First Eloquent Relationships

Where it is thrown this message ? and on which action? Probably, it's Database error

BabarKhan commented on Your First Eloquent Relationships

What it gives you nothing?

26 Jul
1 month ago

BabarKhan started a new conversation Laravel Version

On which Laravel Version should start project between 5.7 or 5.8?

BabarKhan commented on Faking PATCH And DELETE Requests

They are called snippets. On the initial stage, forget about snippets. follow the documentation of Bulma.

24 Jul
1 month ago

BabarKhan commented on Eloquent, Namespacing, And MVC

It's okay. First time it's hard not the second and third time it will be easy, just try to repeat the things.

when you assigning the value to the field, type the value in double quotes "First Project"

BabarKhan commented on Eloquent, Namespacing, And MVC

but he describes everything in this episode.

BabarKhan commented on Eloquent, Namespacing, And MVC

First: create Model php artisan make:model Project, Second: run migration php artisan migrate,

After enter in to Tinker php artisan tinker you can save the instance in varaible $proj = new App\Project; , $proj::all(); or run direct App\Project::all();

17 Jul
2 months ago

BabarKhan commented on Make A Router

PHPStorm will mark as an error, but it's okay because you create "$router" variable in routes.php then includes it through Router::load('routes.php') the instance we saved of Router class in "$router" variable then we require the "$file" in "load" static function in Router Class, so it will detect the variable when the file will be load. But PHPStorm will show you an error always in "routes.php" file. Ignore it. Understand the logic just.

12 Jul
2 months ago

BabarKhan commented on MySQL 101

MySQL Workbench is great GUI for Windows.

BabarKhan commented on Step 10: Functions

How is it ?

echo checkAge(33) ? 'Welcome to the club' : 'sorry! you are younger than 21';

BabarKhan left a reply on Add Certification On LinkedIn

do you know the pattern of certification? and how much knowledge or topics will require to gain the certification? @click @jeffreyway