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?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire