mardi 31 juillet 2018

Laravel 5.6 get user in Routes issue

How to get an id of the user?

Route::group(['middleware' => 'auth'], function()
{
    var_dump(Auth::user());
}

It returns null.

Simple things made difficult.. Also there is no reliable explanation

How to handle this?



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

Aucun commentaire:

Enregistrer un commentaire