我无法通过作曲家Rakutentech/Laravel-request在Laravel/腔中生成API文档。
如果有任何工具可用于在Laravel/腔中自动生成文档。
发布于 2022-11-18 08:17:11
首先,腔内没有vendor:publish。您可以使用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您可以使用几个工作环境,例如:
Rakutentech/Laravel-request-docs的最简单、最可靠的方法。鲁门本来是一个轻量级的框架,它缺乏在Laravel中可用的功能是意料之中的。mr-bug-miner/lumen-doc。另一个是坐了4年的davmixcool/lumen-apidoc-generator。这两个包都没有一个看起来很有希望--但你总是可以尝试的。zizaco/entrust包。答案已经解决了,解决方案是使用irazasyed/larasupport。有其他替代办法,所以选择你的选择。VendorPublishCommand.php复制到app/Console/Commands中,看看它是否有效。不过,我相信您需要删除一些原始代码,特别是VendorTagPublished事件。如果您已经开始您的研究与错误信息,您将有一个更容易的时间。
此外,一些建议,通常要求场外资源是不被接受的。无论何时,当您要求选择其他包时,请小心处理。
https://stackoverflow.com/questions/74484389
复制相似问题