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.8k stars 577 forks source link

Ensure catch-all routes do not take precedence #2669

Closed ifox closed 1 month ago

ifox commented 1 month ago

Fixes #2646 by moving to a regular service provider instead of inheriting from Laravel's route service provider, because it loads routes after boot, but we need them registered as soon as the router is resolved.

This is a problem that affected first-party Laravel tools like Pulse, too: https://github.com/laravel/pulse/commit/9ab920b5894582698669cc9c0b7e8b3aa74465d5