laravel get logged in user name code example
Example 1: current loggedin user laravel
$user = auth()->user(); print($user->id);print($user->name);print($user->email);
Example 2: how to find the name of login user in laravel
Auth::user()->name
$user = auth()->user(); print($user->id);print($user->name);print($user->email);
Auth::user()->name