jeudi 27 février 2020

Laravel Auth return different data

Sorry, anyone please help me. I use Laravel 5.4. I just wanna echo auth()-user()->role in view, but the result is different when I echo auth()->user()->role in controller. This is the code.

echo in Controller

result from controller

code in view

result from view

Does anyone know the problem? I've tried to clear cache, but no changes. Thanks



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

Aucun commentaire:

Enregistrer un commentaire