Debug School

rakesh kumar
rakesh kumar

Posted on

Laravel:In order to use the Auth::routes() method, please install the laravel/ui package.

Error:

require laravel/ui to use Auth::routes
Enter fullscreen mode Exit fullscreen mode

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.
Enter fullscreen mode Exit fullscreen mode

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.
Enter fullscreen mode Exit fullscreen mode

Solution

Step 1: (Install Laravel UI)

composer require laravel/ui
Enter fullscreen mode Exit fullscreen mode

Step 2: (Generate Auth UI)

php artisan ui bootstrap --auth
Enter fullscreen mode Exit fullscreen mode

Also please read the documentation: https://github.com/laravel/ui/blob/3.x/README.md

Top comments (0)