laravel / framework

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

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

Closed cameronmurphy closed 7 months ago

cameronmurphy commented 7 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 7 months ago

Please report this on the nova issue tracker.

crynobone commented 7 months ago

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