laravel auth provider code example
Example 1: laravel auth user_id
$userId = Auth::id();
Example 2: laravel auth
//laravel 8.x
//for bootstrap scafolding
php artisan ui bootstrap --auth
Example 3: make auth in laravel 7
composer require laravel/ui "^2.0"