laravel 8 get current user name code example
Example 1: laravel get current route name
Route::currentRouteName()
Example 2: current user laravel
$user = auth()->user(); print($user->id);print($user->name);print($user->email);
Route::currentRouteName()
$user = auth()->user(); print($user->id);print($user->name);print($user->email);