If you are runing Laravel app and using Passport, you might encounter this error while running php artisan route:list
in CLI.
And that is because you haven’t installed passport yet in your app, to solve this issue run following command that will solve the problem.
php artisan passport:install
That should be all, now when you run php artisan route:list
it should list the routes.