How to fix the error “In order to use the Auth::routes() method, please install the Laravel/ui package” in Laravel
Limited Time Offer!
For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!
Error:
message "In order to use the Auth::routes() method, please install the laravel/ui package"
I’m switching to Laravel 9 for my project. But when I attempted to launch php artisan, I received an error message.
To use the Auth::routes() method, please install the laravel/ui package.
I thus install the package, but I continue to receive the same issue. What could be the issue, and how do I resolve 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