samedi 19 août 2017

laravel meaning of first() method as shown in the piece of code below

Route::bind('user', function ($value) {
    return App\User::where('name', $value)->first();
});

I think it fetches the first row, but I am not sure if I am right.



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

Aucun commentaire:

Enregistrer un commentaire