首页  >  问答  >  正文

在 Laravel/lumen 中生成 API 文档而不使用注释:分步指南

我无法通过 Composer require Rakutentech/Laravel-request-docs --dev 在 Laravel/lumen 中生成 API 文档。

是否有任何工具可用于在 Laravel/lumen 中自动生成文档。

P粉662614213P粉662614213259 天前380

全部回复(1)我来回复

  • P粉564301782

    P粉5643017822024-01-09 00:41:09

    首先,没有 供应商:在流明中发布。您可以使用 php artisan list 进行检查,它将显示它缺少 vendor 命令:

    Available commands:
    completion           Dump the shell completion script
    help                 Display help for a command
    list                 List commands
    migrate              Run the database migrations
    auth
     auth:clear-resets    Flush expired password reset tokens
    cache
     cache:clear          Flush the application cache
    ....
    schedule
     schedule:run         Run the scheduled commands
     schedule:work        Start the schedule worker
    schema
     schema:dump          Dump the given database schema

    您可以使用多种解决方法,例如:


    如果您已经从错误消息开始进行研究,那么您会更轻松。

    此外,还有一点建议,通常会避免请求场外资源。每当您要求替代套餐时请务必小心。

    回复
    0
  • 取消回复