thedevsaddam / lumen-route-list
Display all the registered route list like laravel
Installs: 198 624
Dependents: 0
Suggesters: 0
Security: 0
Stars: 33
Watchers: 2
Forks: 5
Open Issues: 0
Type:package
This package is not auto-updated.
Last update: 2022-02-01 13:03:38 UTC
README
This package will help to display all the registered route list like laravel.
This package is no longer maintained :( use this package appzcoder/lumen-route-list
Installation
Via Composer
$ composer require thedevsaddam/lumen-route-list
Install manually (add the line to composer.json file)
"thedevsaddam/lumen-route-list": "^1.0"
Then open your terminal and hit the command
composer update
Open bootstrap/app.php and add the line below
$app->register(\Thedevsaddam\LumenRouteList\LumenRouteListServiceProvider::class);
Uses
- Run
php artisan route:list
to display the route list - Inorder to filter routes use
php artisan route:list --method=searchKeyword --uri=searchKeyword
- To display in reverse order use
--reverse
or-r
Filtering example given below:
php artisan route:list --method=post #The above example will filter all the routes with post method# or php artisan route:list --name=users #The above example will filter all the routes which name contains *user* keyword# or php artisan route:list --name=users --method=get --uri=api/v1 #This above example will filter all the routes where name matches users, method matches get and uri matches api/v1 or to display in reverse order use php artisan route:list --name=users -r
License
The lumen-route-list is a open-source software licensed under the MIT License.
Thank you :)