check a user details before login laravel code example
Example 1: is users logged in laravel blade
@auth
// user logged in
@else
// not logged in
@endauth
Example 2: how to find the name of login user in laravel
Auth::user()->name
@auth
// user logged in
@else
// not logged in
@endauth
Auth::user()->name