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?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire