JokerDz

JokerDz

Member Since 3 Weeks Ago

Experience Points
1,400
Total
Experience

3,600 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
4
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.

Level 1
1,400 XP
Nov
25
3 days ago
Activity icon

Replied to Foreign Key In Laravel 8

@neeraj1005 so in laravel 8 we don't need to use index ?

Activity icon

Started a new Conversation Foreign Key In Laravel 8

hello ,

$table->foreignId('user_id')
->index()
->constrained()
->onDelete('cascade');

can someone explain to me , why we add index and constrained ?

Nov
22
6 days ago
Activity icon

Replied to Mass Assignement Laravel

and for delete we can use ondelete('cascade') and also onupdate('cascade')

Activity icon

Replied to Mass Assignement Laravel

@talinon in my case i have user table , and client table and provider table , i'm using user table for Authentification user (id,email,password) , and provider table inherite from user table (email and passowrd) same to client so why we need to define a primary key to client and provider since we can just use FK ?

Activity icon

Replied to Mass Assignement Laravel

@talinon Is it ok to have a table that only contain foreign keys without primary key ?

Activity icon

Replied to Mass Assignement Laravel

@talinon why IDFournisseur should be set to Auto-incrementing ?

Activity icon

Replied to Mass Assignement Laravel

@talinon

 $table->unsignedBigInteger('IDFournisseur')
                    ->primary();
            $table->unsignedBigInteger('GUIDinscription');     
            $table->text('NomFournisseur');

Activity icon

Started a new Conversation Mass Assignement Laravel

hello ,

i have a problem with mass assignement , so i have a Fournisseur Model and fournisseurs table in Fournisseur Model i do that :

protected $fillable = [
        'IDFournisseur',
        'GUIDinscription', 
        'NomFournisseur',
    ];
`IDFournisseur` is the `primaryKey`
`IDFournisseur` and `GUIDinscription` are `unsignedBigInteger`

and when i do that :

$data =  [IDFournisseur' => 12222 ,'GUIDinscription' => 1223,'NomFournisseur' => 'lskdf'];

App\Models\Fournisseur::create($data);

this Error will appear :

Illuminate/Database/QueryException with message 'SQLSTATE[HY000]: General error: 1364 Field 'IDFournisseur' doesn't have
 a default value (SQL: insert into `fournisseurs` (`NomFournisseur`, `updated_at`, `created_at`) values (lskdf, 2020-11-
23 00:04:44, 2020-11-23 00:04:44))'
Activity icon

Replied to Passing Token In URL

@tisuchi it's possible to say rout(...)->withHeader ?

Activity icon

Replied to Passing Token In URL

@tisuchi yes , i want to add Authorization : Bearer.... in url

Activity icon

Started a new Conversation Passing Token In URL

hello ,

how i can pass the acces token in url ?

Nov
19
1 week ago
Activity icon

Started a new Conversation Authentification Laravel

how to make a model authenticable in laravel ? tell me plz if there is a package to do that or not and also => Auth::user() how it work exactly ? and with which model it work with ?

Nov
18
1 week ago
Activity icon

Replied to Laravel Passport

@tisuchi it work correctly and it give me access token correctly , but vs code show me that this methode is undefined i don't know why

Activity icon

Replied to Laravel Passport

@tisuchi 'model' => App\Models\User::class,

Activity icon

Started a new Conversation Laravel Passport

Hello , when i use this statement in login class : $success['token'] = Auth::user()->createToken('MyApp')->accessToken; it show me : undefined methode createToken

But it work correctly in registre class

so can someone help me ?

Nov
17
1 week ago
Activity icon

Replied to Route Laravel

@ma @michaloravec thank you'all

Activity icon

Replied to Route Laravel

@ma thank you , but i don't understand yet 'namespace'=>'api' what does mean

Activity icon

Started a new Conversation Route Laravel

Hello ,

Route::group([ 'middleware' => 'api', 'namespace' => 'Api', 'prefix' => 'api', ] ,

can someone explain to me this ?

Activity icon

Replied to Is This Safe From Sql Injection?

what does mean prepared statements ? and how it can help us in this case (sql injection)

Activity icon

Replied to Laravel Passport

@martinbean thank you so much

Activity icon

Replied to Laravel Passport

what are u mean by first- and third-party ?

Activity icon

Replied to Laravel Passport

thank you

Activity icon

Started a new Conversation Laravel Passport

Hello ,

i add the default authentification to my project using Laravel ui , and next i add laravel passport for api , so we need to create login and registre function ? or how we can use login and function offred by laravel ui in this case ?

Nov
16
1 week ago
Activity icon

Started a new Conversation Laravel Breeze + Passport

Hello ,

how i can Use laravel Passport with Authentification offred by Laravel Breeze ? if someone have documentation about this let me know

Thank you'all

Activity icon

Replied to Att Type In Laravel

So, in varchar the default lenght is 255 , so we can exceed this number , so we can say $table->string('xx',2000) for example ?

Activity icon

Started a new Conversation Att Type In Laravel

Hello ,

what's the different between : $table->string('xx',1) and $table->char('xx',1) , and there is a limite in the lenght or no ?

and also for URL which is the best to use $table->string or $table->text ?

Nov
15
1 week ago
Activity icon

Replied to Using Dash Instead Of Slash In Routes

what does mean slug ?

Activity icon

Replied to Constraint In Laravel

No i mean , if we have a Table with 2 attributes, how we can add constraint that will check if the first attribute should be > than the second attribute .

it's possible when we are using SQL query ( 'Alter table .. add constraint ... check (att1 > att2)') ,

so my question is : it's possible to use ORM eloquent in this case ?

Activity icon

Started a new Conversation Constraint In Laravel

hello , it's possible to add constraint toan attribute in a table using ORM ? or we just use DB::statment('Alter table ....') in up function

Nov
14
2 weeks ago
Activity icon

Replied to Model In Laravel

that's what i mean , thank you

Activity icon

Replied to Model In Laravel

okay i'm totaly agree with u , but what if we say private $guarded ? since we don't have any class inherite from Our Model

Activity icon

Started a new Conversation Model In Laravel

Hello ,

are we need to add these attributes to the Model class ? and why we add them ? also why we make fillable attribute protected not public ? \n

protected $table = 'products'; , protected $primaryKey = 'product_id'; , public $timestamps = true; , public $incrementing = false; ,

Activity icon

Replied to API

yes, i want to understand how authentificaion flow of API works , so can you suggest to me a course for that ?

Activity icon

Replied to API

why we use sanctum in small application only ?

Activity icon

Started a new Conversation Auth

Hello ,

i have a big project , and i'm confused between using Auth0 service or Default Authentification offred by laravel (jetstream or breeze or laravel ui packages ) as Authentification service in my project ,

and also for API i'am confused betewenn using JWT or Passport Or Sunctum !

So , what dou propose guys ?

Nov
13
2 weeks ago
Activity icon

Started a new Conversation API

hello guys , hope u are doing well ,

My question is : which one is the best for API in laravel : Passport or Scantum or JWT ? and can we use fortify package with them ?

Activity icon

Replied to Auth Or Guest Or Both, Middleware.

when we use auth and guest , or they are the same ?