Error:
require laravel/ui to use Auth::routes
I am upgrading my project to Laravel 9. However, when I tried to run php artisan, I got an error message.
To use the Auth::routes() method, please install the laravel/ui package.
So I install the package, but I still get the same error message. What might be the problem, and how can I fix it?
RuntimeException
In order to use the Auth::routes() method, please install the laravel/ui package.
Solution
Step 1: (Install Laravel UI)
composer require laravel/ui
Step 2: (Generate Auth UI)
php artisan ui bootstrap --auth
Also please read the documentation: https://github.com/laravel/ui/blob/3.x/README.md
Top comments (0)