Laravel Pretty Routes Console Command


April 29th, 2021


Pretty Routes for Laravel is a package to display Laravel routes in the console, but make it pretty:

Using this package is simple—install it via composer, and you have access to a new route:pretty Artisan command:

1composer require wulfheart/pretty_routes
3# Or require as a dev dependency if you want
4composer require --dev wulfheart/pretty_routes

Then you have a similar API to the route:list command to visualize your routes with a beautiful CLI formatting for max readability and helpful information:

1php artisan route:pretty
3# Example with options
4php artisan route:pretty \
5 --except-path=horizon \
6 --method=POST \
7 --reverse

Here's an example of the output from the project's readme:

Pretty route console output

You can learn more about this package, get full installation instructions, and view the source code on GitHub.

Filed in:

Paul Redmond

Full stack web developer. Author of Lumen Programming Guide and Docker for PHP Developers.