BabarKhan

BabarKhan

Member Since 1 Year Ago

Experience Points
11,290
Total
Experience

3,710 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
104
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.

Level 3
11,290 XP
Oct
09
1 week ago
Activity icon

Started a new conversation How To Create Multiple Fields Dynamically On Form In Laravel ?

How to Create multiple fields dynamically on form in laravel ?

Oct
05
1 week ago
Activity icon

Commented on Two Layers Of Validation

do this:

$validated = request()->validate([
'title' => 'required',
'description' => ''
]);

and allow null description column in database.

Activity icon

Commented on Faking PATCH And DELETE Requests

Install Emmet https://emmet.io/download/ in your favorite editor.

Oct
02
2 weeks ago
Activity icon

Commented on Faking PATCH And DELETE Requests

it's a snippet.

Sep
27
2 weeks ago
Activity icon

Commented on Initial Setup Requirements

just install laragon

Sep
25
3 weeks ago
Activity icon

Started a new conversation In Laravel How To Sort An Array ?

array:3 [▼
  "program" => array:2 [▼
    0 => "1"
    1 => "1"
  ]
  "semester" => array:2 [▼
    0 => "4"
    1 => "4"
  ]
  "course" => array:2 [▼
    0 => "1"
    1 => "2"
  ]
]

How to sort above Array in to below format ?

[1, 4, 1]
[1, 4, 2]
Sep
15
1 month ago
Activity icon

Replied to 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);
    }

}
Activity icon

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

Middleware or Policies ?

Sep
10
1 month ago
Activity icon

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 ?

Activity icon

Commented on At A Glance

What a Great Glance !

Sep
09
1 month ago
Activity icon

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 ?

Aug
26
1 month ago
Activity icon

Replied to 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.

Activity icon

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.

Aug
23
1 month ago
Activity icon

Replied to Is There Any Series Or Episode On Multiauth ?

with different role ?

Activity icon

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

is there any series or episode on multiauth ?

Aug
20
1 month ago
Activity icon

Replied to How To Use Old() Function With Radio Button

It helped me. Thank you :)

Jul
28
2 months ago
Activity icon

Commented on Your First Eloquent Relationships

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

Activity icon

Commented on Your First Eloquent Relationships

What it gives you nothing?

Jul
26
2 months ago
Activity icon

Started a new conversation Laravel Version

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

Activity icon

Commented on Faking PATCH And DELETE Requests

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

Jul
24
2 months ago
Activity icon

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"

Activity icon

Commented on Eloquent, Namespacing, And MVC

but he describes everything in this episode.

Activity icon

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();

Jul
17
2 months ago
Activity icon

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.

Jul
12
3 months ago
Activity icon

Commented on MySQL 101

MySQL Workbench is great GUI for Windows.

Activity icon

Commented on Step 10: Functions

How is it ?

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

Replied to Add Certification On LinkedIn

Thank you

Activity icon

Replied to 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