基本用法是:
1 | laravel artisan route 用法 |
可添加的后缀有:
后缀参数 | 描述 | 默认值 |
---|---|---|
–method= |
Filters the routes by method. | 无 |
–name= |
Filters the routes by name. | 无 |
–path= |
Filters the routes by path (URI). | 无 |
–reverse | Reverses the order the routes are displayed in the table. | 无 |
-r | Reverses the order the routes are displayed in the table (shortcut to –reverse). | 无 |
–sort | The column to sort by. Accepted values are host, method, uri, name, action or middleware. | uri |
举例:
1 | # Filter the route list by name. |