New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get all registered routes #1456
Comments
Zyles, no. In v3, the callables are only resolved once a route has been chosen to be dispatched. However you can all of the Route objects through the router.
|
You can do this using the code above. |
For the next poor soul landing here and getting the advice to use the deeply nested -thus unreadable- routes object:
|
better printout with path and methods
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is it possible somehow to get all the registered routes, their HTTP methods, controllers and functions into an array?
I want to replicate "$ php artisan routes" from Laravel in a cli app so would be nice with this list.
The text was updated successfully, but these errors were encountered: