how to check user logged in in laravel blade code example
Example 1: get logged user id laravel
$id = Auth::user()->id;print_r($id);
Example 2: get current logged-in user details in Laravel
$user = Auth::user();
echo $user->id;
echo $user->name;
echo $user->email;