Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel Nova, route not found

I've installed Laravel Nova (using Laravel 5.6). App\Providers\NovaServiceProvider::class is registered in my config/app.php file. But when I go to https://localhost:1234/nova I get a 404 error.

I have cleared my caches and run a composer dump-autoload. How can I get this route working?

EDIT: When I run php artisan route:list the nova-api routes are there but there is no route for nova.

Also, the migrations were not copied across after nova:install. I am working with an existing Laravel project.

like image 518
GluePear Avatar asked Aug 24 '18 13:08

GluePear


2 Answers

Verify App\Providers\NovaServiceProvider is in your provider list.

  • Go to config/app.php
  • Add App\Providers\NovaServiceProvider::class, to the providers

Note that this answer is relative to @jszobody's anwser and a direct answer to a question following up upon that aforementioned tweet. https://twitter.com/taylorotwell/status/1032300773655408640

Without this, it is possible to see the Nova panel, though it remains empty. A fresh install at this time will show a "Help" Card on the Dashboard.

like image 158
Ken Verhaegen Avatar answered Sep 19 '22 19:09

Ken Verhaegen


I ran into this problem too. Add Nova::routes(); to your routes/web.php and reload /nova in your browser.

like image 25
Andrew Avatar answered Sep 19 '22 19:09

Andrew