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