urbanists.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
We're a server for people who like bikes, transit, and walkable cities. Let's get to know each other!

Server stats:

525
active users

#laravel

32 posts28 participants2 posts today

Only 5 months later I found out, poking around Livewire's source code that they have a method to do exactly this (prepending a route the existing routes to avoid wildcard routes overriding a testing route):

github.com/livewire/livewire/b

Basically, it just retrieves existing routes, creates an empty route collection with the new route, and then append the existing routes and overwrites the object on the service container.

A full-stack framework for Laravel that takes the pain out of building dynamic UIs. - livewire/livewire
GitHublivewire/src/Features/SupportTesting/InitialRender.php at 56c30dba02dde93ed69db2a65aa8221ccabef5bf · livewire/livewireA full-stack framework for Laravel that takes the pain out of building dynamic UIs. - livewire/livewire
Continued thread

⚙️ Supports both stdio and HTTP+SSE transports for flexible integration options
🔌 Includes a special package for #Laravel integration via php-mcp/laravel
🧩 Automatically infers metadata from method names, type hints, and DocBlocks