mardi 29 août 2017

laravel 5.4 access current user data in layout.blade

I want to get data about the current user in the header of the site, what would be displayed on each page! I tried to use , but only works on the login page. When I go to another page, I get an error: "Trying to get property of non-object". How to fix it?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire