That should be enough so I think there is maybe something wrong with your login functionality or the result of the header is maybe cached.
Are you checking the results in a dev environment where the cache is always cleared? And can you post some parts of your login functionality? Which method are you using to log the user in?
The problem was cache. One command solved that problem.
php artisan cache:clear
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us
The Laravel portal for problem solving, knowledge sharing and community building.