curren user id get in laravel code example
Example 1: laravel get auth user id
// Get the currently authenticated user's ID...
$id = Auth::id();
Example 2: laravel 6 get user id
$id = \Auth::id();
// Get the currently authenticated user's ID...
$id = Auth::id();
$id = \Auth::id();