vendredi 30 décembre 2016

What is the difference between User::class and App\User while setting relations?

return $this->belongsTo(User::class);

vs

return $this->belongsTo(App\User);

What is the difference between the above two statements?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2ihPJQv
via IFTTT

Aucun commentaire:

Enregistrer un commentaire