laravel / framework

The Laravel Framework.
https://laravel.com
MIT License
32.47k stars 11.01k forks source link

Nova on Laravel 11 crashes with 'Route [login] not defined' #51113

Closed cameronmurphy closed 6 months ago

cameronmurphy commented 6 months ago

Laravel Version

11.0.6

PHP Version

8.3.6

Database Driver & Version

Postgres 15.6

Description

Installing Nova into a fresh Laravel 11 project throws an error "Route [login] not defined". Navigating to /nova/login works, however, and artisan route:list does list nova/login as a route.

Steps To Reproduce

composer create-project laravel/laravel laravel-nova
cd laravel-nova
composer config repositories.nova composer https://nova.laravel.com
composer require laravel/nova
php artisan sail:install # Choose pgsql
php artisan nova:install
vendor/bin/sail up
vendor/bin/sail artisan migrate

Open http://localhost/nova in a browser.

image

driesvints commented 6 months ago

Please report this on the nova issue tracker.

crynobone commented 6 months ago

Laravel skeleton and Nova doesn't have route('login') available by default and cause this error.