Skip to content

Commit

Permalink
Update --path Flag in the Route Listing Documentation (#8047)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
zaghadon and taylorotwell authored Jul 18, 2022
1 parent 91aa9a8 commit 5baf928
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5baf928

Please sign in to comment.