Skip to content
Advertisement

PHP Laravel Nova returns 404

I’m working on a local laravel-nova project which worked fine the last couple of days. Now all of a sudden, when I try to go to the /nova route I get a 404 error saying Page could not be found. I tried with

php artisan config:cache

but with no luck. I even deleted the vendor-folder and ran composer install and php artisan nova:install but that didn’t solve it either.

When I run php artisan route:list I get the error:

Class AppHttpControllersLaravelNovaHttpControllersLoginController does not exist

I mean, seriously – WTF??? I have absolutely no clue what happened?

Does anyone know how to solve this?

My Laravel version is 5.7 and I’m running this app on a Windows 10 machine.

Advertisement

Answer

add on app/config/app.php

AppProvidersNovaServiceProvider::class,

inside ‘providers’

you may need to run these commands later if that doesn’t work

php artisan nova:publish

and

php artisan view:clear
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement