Laravel Pretty Routes Console Command
Published on by Paul Redmond
Pretty Routes for Laravel is a package to display Laravel routes in the console, but make it pretty:
After some tinkering I'm happy to release my first package for Laravel which some people actually really waited for:
— Λlex Wulf 🇪🇺 (@alexfwulf) April 28, 2021
Meethttps://t.co/bUWhiXZKeO
Using this package is simple—install it via composer, and you have access to a new route:pretty
Artisan command:
composer require wulfheart/pretty_routes # Or require as a dev dependency if you wantcomposer 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:
php artisan route:pretty # Example with optionsphp artisan route:pretty \ --except-path=horizon \ --method=POST \ --reverse
Here's an example of the output from the project's readme:
You can learn more about this package, get full installation instructions, and view the source code on GitHub.