get auth id in laravel 7 issue code example
Example 1: get id user login laravel
use Auth;
$user_id = Auth::user()->id;
Example 2: how to get the auth id in lravael
$userId = Auth::id();
use Auth;
$user_id = Auth::user()->id;
$userId = Auth::id();