6

I am upgrading my project to Laravel 9. However, when I tried to run php artisan, I got an error message.

In Auth.php line 60: 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?

Karl Hill
  • 12,937
  • 5
  • 58
  • 95
Aryabhima A. Rahman
  • 375
  • 1
  • 5
  • 10

2 Answers2

8

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

Nawaf Khalifah
  • 594
  • 3
  • 11
2

Had the same issue but had it working locally but not on the web host. In case you are uploading to a remote server and you can't run composer/artisan make sure to also upload the files in bootstrap/cache (packages.php and services.php)

Splatbang
  • 756
  • 1
  • 12
  • 29