| Package Data | |
|---|---|
| Maintainer Username: | noisegate |
| Maintainer Contact: | me@widnyana.web.id (Widnyana) |
| Package Create Date: | 2016-07-03 |
| Package Last Update: | 2016-10-24 |
| Home Page: | http://log.widnyana.web.id |
| Language: | PHP |
| License: | BSD-3-Clause |
| Last Refreshed: | 2025-10-27 03:09:23 |
| Package Statistics | |
|---|---|
| Total Downloads: | 1,601 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 1 |
| Total Watchers: | 1 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
This code bring Dingo's api:route command to Lumen's artisan.
Acquire the source code:
composer require widnyana/lumen-dingo-routes-list
and Register the service provider:
// file: bootstrap/app.php
$app->register(Widnyana\LDRoutesList\CommandServiceProvider::class);
call it like this:
$ ./artisan api:list-route
for avoiding any command conflict with Dingo nor Lumen, the command is located at api:list-route .

There is an "undefined behaviour" that I can't exactly tell you why it will always say GET|HEAD for the Method columns no matter what HTTP Method you define for each route, as far as I try, there is no HTTP Method passed down to Dingo\Api\Routing\Route, and the function call to $route->getMethods() will always return GET|HEAD. If you know how, please send me a pull request :)
This code is blatantly stolen from this file.
see license