switch to api login laravel code example
Example 1: laravel get authorization bearer token
//get Authorization Bearer Token value
$token = $request->bearerToken();
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"