lundi 5 avril 2021

Auth with web parameter and without parameter

In Laravel, When i'm using auth('web')->user() it's return the data. but when i using auth()->user() no data return.

why auth()->user() return no data?

i know about web and api middleware. by default laravel use web. but why i need to pass web parameter into auth function



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

Aucun commentaire:

Enregistrer un commentaire