martenkoetsier / laravel-routelist
Alternative to route:list console command with more emphasis on route names, shortened controller names, more compact middleware view and other small tweaks.
Installs: 22
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/martenkoetsier/laravel-routelist
Requires
- laravel/framework: >=9.0
README
Alternative to route:list console command with more emphasis on route names, shortened controller names, more compact
middleware view and other small tweaks.
As of Laravel 9, the route:list command output has changed. In this new output, route names are not alligned and printed in a dark color. Also, the default output does not list middleware. This package replaces the existing console command. The new output will:
- vertically align the route names, immediately after the route uri's
- highlight the route names
- replace the fixed string
Controllerin the route action by a single character©to save horizontal space - replace the
@sign in the route action by∷(one glyph) - list the middlewares by default
- shorten the middlewares into their aliases as known via the App\Http\Kernel class (unless the
-voption is added) - place middleware on as few lines as possible
- make use of the full available horizontal space
- replace the fully dotted fillers by fewer dots, neatly alligned
Installation
composer require martenkoetsier/laravel-routelist
The automatic package discovery will add the service provider to your project.
Usage
Usage is as with the original route list command in Laravel:
php artisan route:list
Adding verbosity (-v) will not shorten the middleware names into their applicable aliases and instead list the full
middleware class names.