jeudi 11 juin 2020

I want to access the auth()->user()-> in routs like web.php?

How can I access the user role from auth in web.php please can anyone provide the method to access the user in web.php?

Trying this code

dd(Auth::check(),auth()->user());

I am logged in and also have authenticated user but showing this output

enter image description here



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

Aucun commentaire:

Enregistrer un commentaire