Closed sinkcup closed 3 years ago
$ php artisan route:list --help Options: --method[=METHOD] Filter the routes by method --name[=NAME] Filter the routes by name --path[=PATH] Filter the routes by path
route command has 3 filters, but only 2 in code:
Route::getRoutes()->getRoutesByMethod(); Route::getRoutes()->getRoutesByName();
https://github.com/laravel/framework/blob/277c2fbd0cebd2cb194807654d870f4040e288c0/src/Illuminate/Routing/CompiledRouteCollection.php#L270
suggestion: support getRoutesByPath: Filter the routes by path
Route::getRoutes()->getRoutesByPath();
Feel free to open a PR.
route command has 3 filters, but only 2 in code:
https://github.com/laravel/framework/blob/277c2fbd0cebd2cb194807654d870f4040e288c0/src/Illuminate/Routing/CompiledRouteCollection.php#L270
suggestion: support getRoutesByPath: Filter the routes by path