Enter your keyword

Laravel Debug App Routes

Laravel Debug App Routes

Laravel Debug App Routes

We’re all aware of the greatness that the Artisan commands add to Laravel applications. Today I wish to discuss one very useful artisan command and how you can make the best of it.

Command

php artisan route:list

The above command will list routes in your application like

Pitfall

When your content is too long; say the controller actions or route name, the command line can’t represent these in a pretty manner.

Improvement

You can replicate the same command logic to have the same information in a view,¬†enabling you to style the data, make it searchable, filterable, …

Implementation

Find the full source code implement here.