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