From 5baf9288eda5a6a32b5cce0d039a26ca7feb6da5 Mon Sep 17 00:00:00 2001 From: Nzagha David Eze <33941830+zaghadon@users.noreply.github.com> Date: Mon, 18 Jul 2022 07:04:28 -0700 Subject: [PATCH] Update --path Flag in the Route Listing Documentation (#8047) * Add Flags to Route Listing, to enable listing a particular Routes file like php artisan route:list --api-only #43214 * Update routing.md Co-authored-by: Taylor Otwell --- routing.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/routing.md b/routing.md index 743b23b1465..fa5f4a28123 100644 --- a/routing.md +++ b/routing.md @@ -140,6 +140,12 @@ By default, the route middleware that are assigned to each route will not be dis php artisan route:list -v ``` +You may also instruct Laravel to only show routes that begin with a given URI: + +```shell +php artisan route:list --path=api +``` + In addition, you may instruct Laravel to hide any routes that are defined by third-party packages by providing the `--except-vendor` option when executing the `route:list` command: ```shell