get auth user id laravel 7 code example
Example 1: laravel auth user_id
$userId = Auth::id();
Example 2: make authentication in laravel
composer require laravel/ui:^2.4
php artisan ui vue --auth
$userId = Auth::id();
composer require laravel/ui:^2.4
php artisan ui vue --auth