how to display the name of the user logged in laravel 7 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;