Laravel: get all routes and corresponding controllers/actions

If you want to know the handler of a particular route you need to run this in your terminal:

php artisan route:list | grep 'route.name'

Replace route.name with your route name.

In most cases all routes are defined in files from routes/* folder but some routes are defined in Laravel itself or some libraries may define its own routes as well. So in case you want to override some actions from internal controllers just use that command above to understand what exactly you need to override.

Proxy Information
Original URL
gemini://g.codelearn.me/2019-11-19-laravel-get-all-routes.gmi
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
637.895556 milliseconds
Gemini-to-HTML Time
0.307087 milliseconds

This content has been proxied by September (3851b).