laravel 7 get auth user id code example
Example 1: laravel auth user_id
$userId = Auth::id();
Example 2: laravel get auth user id
// Get the currently authenticated user's ID...
$id = Auth::id();
Example 3: get user auth in laravel
Auth::user();