Answer the question
In order to leave comments, you need to log in
Why doesn't it show the session status in Laravel correctly?
According to this article, I made the rights to users https://laravel.demiart.ru/guide-to-roles-and-perm...
composer require laravel/ui
{{ session('status') }} - does not correctly display the session status, always writes "You are logged in!"
I did it through composer, so it should work by itself.
Answer the question
In order to leave comments, you need to log in
For Blade templates, use the authentication facade
<div>{{ Auth::check() ? 'Hello, ' . Auth::user()->name . '!' : 'Hello, guest!' }}</div>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question