首頁  >  問答  >  主體

在 Laravel/lumen 中產生 API 文件而不使用註解:逐步指南

我無法透過 Composer require Rakutentech/Laravel-request-docs --dev 在 Laravel/lumen 中產生 API 文件。

是否有任何工具可用於在 Laravel/lumen 中自動產生文件。

P粉662614213P粉662614213259 天前379

全部回覆(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
  • 取消回覆