laravel set auth user code example
Example 1: laravel auth user_id
$userId = Auth::id();
Example 2: artisan make auth
composer require laravel/ui
php artisan ui vue --auth
Example 3: laravel authentication
composer require laravel/ui
php artisan ui vue --auth
Example 4: laravel auth
//namespace
use Illuminate\Support\Facades\Auth;
Example 5: laravel auth
composer require laravel/ui:^2.4
php artisan ui vue --auth