January 5th, 2022

route:list reinvented in Laravel 9

route:list reinvented in Laravel 9

We all know that the existing route:list artisan command fails to display routes properly in Laravel projects with a large and complex list of routes. Especially when debugging and / or working with API's we had to check if a specific endpoint exists or if it uses the correct HTTP verb.

I think we are all familiar with a similar console output:

As a workaround some started to use pretty routes, which is a package that displays the routes in a more pleasant way.

1 hour ago, Nuno Maduro, one of the Laravel Core Team members submited a pull request in which he's taking the entire console customization for displaying the routes to another level. Nuno is also the creator of Termwind, a package that is like Tailwind CSS, but for the PHP command-line applications so if we are up to date with Nuno's work, we know that he knows exactly what he's doing.

Nuno's proposal looks like this:

At the time of writing this article, the PR is not merged yet but we are very confident that this revamp of for the route:list command will end up in Laravel 9 because it is highly voted on Github, the community reacted very good on twitter and Taylor Otwell, the creator of Laravel retweeted this new feature.

For a complete list of features added, see the open PR here.

UPDATE: The PR has been merged

Statamic Ninja


Marian Pop

PHP / Laravel Developer. Writing and maintaining @LaravelMagazine. Host of "The Laravel Magazine Podcast". Pronouns: vi/vim.

Subscribe to our newsletter

Get latest news, tutorials, community articles and podcast episodes delivered to your inbox.

Weekly articles
We send a new issue of the newsletter every week on Friday.
No spam
We'll never share your email address and you can opt out at any time.