Route Lists
The route:list Artisan command can easily provide an overview of all of the routes that are defined by your application:
php artisan route:list
Example:
php artisan route:listBy default, the route middleware that are assigned to each route will not be displayed in the
route:list output; however, you can instruct Laravel to display the route middleware by adding the -v option to the command:E.g:
php artisan route:list -v
O/P
You may also instruct Laravel to only show routes that begin with a given URI:
E.g:
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:
php artisan route:list --except-vendorO/P
Likewise, you may also instruct Laravel to only show routes that are defined by third-party packages by providing the --only-vendor option when executing the route:list command:
php artisan route:list --only-vendorO/P

Comments
Post a Comment