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