GreatDayDan
GreatDayDan

Reputation: 169

Laravel 8 UI issue

I have installed Laravel 8 as a new project. When I run the project I get the "In order to use the Auth::routes() method, please install the laravel/ui package." But Laravel installation doc says that laravel ui is depreciated and that we should use Jetstream. So I installed Jetstream with the Livewire stack. Back to test the project and I get the same error msg.

I have run a composer dump-autoload.

What do I have to do to get a Laravel 8 project to run?

Upvotes: 2

Views: 3088

Answers (2)

Watercayman
Watercayman

Reputation: 8178

I had this problem as well on many 'upgrades' from earlier versions of Laravel. I don't want to change the entire auth mechanism, as it works, so I will keep the code I have.

@Elisha Senoo's answer is correct, and solved it most of the time. However, if you find yourself unable to clear the cache (because it has the same error message on the artisan command), the solution is to manually clear the .php files within the bootstrap/cache folder and then php artisan config:cache.

Upvotes: 1

Elisha Senoo
Elisha Senoo

Reputation: 3594

You will need to clear and recreate cache. Run the following php artisan commands:

php artisan cache:clear
php artisan config:cache
php artisan route:cache

Upvotes: 1

Related Questions