@@ -212,9 +212,10 @@ protected function getMiddleware($route)
212
212
*/
213
213
protected function filterRoute (array $ route )
214
214
{
215
- if (($ this ->option ('name ' ) && ! str_contains ($ route ['name ' ], $ this ->option ('name ' ))) ||
216
- $ this ->option ('path ' ) && ! str_contains ($ route ['uri ' ], $ this ->option ('path ' )) ||
217
- $ this ->option ('method ' ) && ! str_contains ($ route ['method ' ], strtoupper ($ this ->option ('method ' )))) {
215
+ if (($ this ->option ('name ' ) && ! Str::contains ($ route ['name ' ], $ this ->option ('name ' ))) ||
216
+ ($ this ->option ('path ' ) && ! Str::contains ($ route ['uri ' ], $ this ->option ('path ' ))) ||
217
+ ($ this ->option ('method ' ) && ! Str::contains ($ route ['method ' ], strtoupper ($ this ->option ('method ' )))) ||
218
+ ($ this ->option ('domain ' ) && ! Str::contains ($ route ['domain ' ], $ this ->option ('domain ' )))) {
218
219
return ;
219
220
}
220
221
@@ -418,6 +419,7 @@ protected function getOptions()
418
419
['json ' , null , InputOption::VALUE_NONE , 'Output the route list as JSON ' ],
419
420
['method ' , null , InputOption::VALUE_OPTIONAL , 'Filter the routes by method ' ],
420
421
['name ' , null , InputOption::VALUE_OPTIONAL , 'Filter the routes by name ' ],
422
+ ['domain ' , null , InputOption::VALUE_OPTIONAL , 'Filter the routes by domain ' ],
421
423
['path ' , null , InputOption::VALUE_OPTIONAL , 'Only show routes matching the given path pattern ' ],
422
424
['except-path ' , null , InputOption::VALUE_OPTIONAL , 'Do not display the routes matching the given path pattern ' ],
423
425
['reverse ' , 'r ' , InputOption::VALUE_NONE , 'Reverse the ordering of the routes ' ],
0 commit comments