laravel do i still use guard for authorization code example
Example 1: get id user login laravel
use Auth;
$user_id = Auth::user()->id;
Example 2: laravel auth
composer require laravel/ui
php artisan ui vue --auth
npm install && npm run dev
use Auth;
$user_id = Auth::user()->id;
composer require laravel/ui
php artisan ui vue --auth
npm install && npm run dev