get auth user id in laravel helper code example
Example 1: laravel get auth user id
// Get the currently authenticated user's ID...
$id = Auth::id();
Example 2: laravel auth
composer require laravel/ui
php artisan ui vue --auth
npm install && npm run dev