configuration
Display all registered routes with their methods, URIs, and associated controllers.
php artisan php artisan route:list
Syntax
Syntax
php artisan route:list [--method=GET] [--path=api] [--name=posts]
Explanation
Shows all routes with HTTP method, URI, name, and action. --method filters by HTTP verb. --path filters by URI prefix. --name filters by route name. Essential for debugging routing issues.
Example
Example
php artisan route:list --method=POST --path=api
Explanation
Shows all routes with HTTP method, URI, name, and action. --method filters by HTTP verb. --path filters by URI prefix. --name filters by route name. Essential for debugging routing issues.