is auth->user in blade code example
Example 1: laravel auth user_id
$userId = Auth::id();
Example 2: is users logged in laravel blade
@auth
// user logged in
@else
// not logged in
@endauth
$userId = Auth::id();
@auth
// user logged in
@else
// not logged in
@endauth