thedevsaddam / lumen-route-list
此包已被弃用且不再维护。未建议替代包。
显示所有已注册的路由列表,如laravel
2.0
2017-09-24 05:18 UTC
This package is not auto-updated.
Last update: 2022-02-01 13:03:38 UTC
README
此包可以帮助显示所有已注册的路由列表,如laravel。
此包不再维护:( 使用此包 appzcoder/lumen-route-list
安装
通过Composer
$ composer require thedevsaddam/lumen-route-list
手动安装(将以下行添加到composer.json文件中)
"thedevsaddam/lumen-route-list": "^1.0"
然后打开您的终端并运行以下命令
composer update
打开bootstrap/app.php并添加以下行
$app->register(\Thedevsaddam\LumenRouteList\LumenRouteListServiceProvider::class);
使用
- 运行
php artisan route:list
以显示路由列表 - 为了过滤路由,请使用
php artisan route:list --method=searchKeyword --uri=searchKeyword
- 为了以反向顺序显示,请使用
--reverse
或-r
以下是一个过滤示例
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
许可
lumen-route-list是一个开源软件,遵循MIT许可证。
谢谢 :)