model user auth laravel code example
Example 1: laravel auth user_id
$userId = Auth::id();
Example 2: get user auth in laravel
Auth::user();
Example 3: make auth in laravel 7
composer require laravel/ui "^2.0"
$userId = Auth::id();
Auth::user();
composer require laravel/ui "^2.0"