laravel api route not detecting authenticated user code example
Example 1: laravel 8 make:auth
php artisan migrate
npm install && npm run dev
Example 2: Route::auth(); giving error in laravel 7
Do this step from the upgrade guide
https://laravel.com/docs/7.x/upgrade#authentication-scaffolding
############
composer require laravel/ui "^2.0"
Example 3: authentication in laravel tutorial
laravelAuth