cbxtechcorp/lumen-api-routes-list

显示 dingo api 配置的路由列表

v1.1.0 2019-10-07 15:05 UTC

This package is not auto-updated.

Last update: 2024-09-26 03:22:09 UTC


README

提供 Laravel 在 Lumen 中的 api:routes 命令

安装

如何将此命令添加到您的 Lumen 项目中

添加依赖

将依赖项作为开发版本添加,以优化部署。

composer require CbxTechCorp/lumen-api-routes-list --dev

启用命令

将以下行添加到 bootstrap/app.php 中以加载命令。

//list api routes
if (class_exists(CbxTechCorp\LumenApiRoutesList\ApiRoutesCommandServiceProvider::class)) {
    $app->register(CbxTechCorp\LumenApiRoutesList\ApiRoutesCommandServiceProvider::class);
};

检查结果

php artisan api:routes