area17 / twill

Twill is an open source CMS toolkit for Laravel that helps developers rapidly create a custom admin console that is intuitive, powerful and flexible. Chat with us on Discord at https://discord.gg/cnWk7EFv8R.
https://twillcms.com
Apache License 2.0
3.72k stars 568 forks source link

Laravel 11 + catch-all route results in `/admin` route throwing 404 #2646

Open dcmastenbroek opened 2 weeks ago

dcmastenbroek commented 2 weeks ago

Description

The /admin route throws a 404 error when using a fresh Laravel 11 install and the basic-page-builder preset. I narrowed it down to the catch-all route that is being used: Route::get('{slug}', [\App\Http\Controllers\PageDisplayController::class, 'show'])->name('frontend.page');.

Steps to reproduce

Use a fresh install of Laravel 11 and go through the "Installation" steps defined in the docs and use the basic-page-builder starter kit.

Expected result

I can access the admin via /admin.

Actual result

A 404 error gets thrown when trying to access /admin.

Versions

Twill version: 3.3.1 Laravel version: 11 PHP version: 8.3 Database engine: MySQL