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.
We are reinventing the `route:list` command for @laravelphp v9.x. ✨— Nuno Maduro (@enunomaduro) January 5, 2022
✍🏻 https://t.co/s4kjedmhrO. pic.twitter.com/ZoSqVlYEl7
For a complete list of features added, see the open PR here.
UPDATE: The PR has been merged
This pull request has been merged. ✅ https://t.co/6JAzE0C1b9— Nuno Maduro (@enunomaduro) January 6, 2022
PHP / Laravel Developer. Writing and maintaining @LaravelMagazine. Host of "The Laravel Magazine Podcast". Pronouns: vi/vim.