Useful Commands 本文未发布 发布文章

未匹配的标注

Apiato is shipped with many useful commands to help you speed up the development process. You can see list of all commands, by typing php artisan and look for Apiato section.

Available Commands

  • php artisan apiato:actions List all Actions in the Application.
  • php artisan apiato:encode Encode a hashed ID.
  • php artisan apiato:permissions:toRole {role-name} Give all system Permissions to a specific Role.
  • php artisan apiato:seed-test Seeds your custom testing data from app/Ship/Seeders/SeedTestingData.php.
  • php artisan apiato:seed-deploy Seeds your custom deployment data from app/Ship/Seeders/SeedDeploymentData.php.
  • php artisan apiato:docs Generate API Documentations from your routes Docblock. More details.
  • php artisan apiato:generate:X Generate a specific component for the framework (e.g., Action, Task, …). For more details on the Code Generator click here.

List All Actions Command

It’s useful to be able to see all the implemented use cases in your application. To do so type php artisan apiato:list:actions
You can also pass --withfilename flag to see all Actions with the files names.
apiato:list:actions --withfilename

List All Tasks Command

It’s useful to be able to see all the implemented tasks in your application. To do so type php artisan apiato:list:tasks
You can also pass --withfilename flag to see all Tasks with the files names.
apiato:list:tasks --withfilename

List Container Dependencies Command

Sometimes it is required to show dependencies between containers (e.g., how they are interlinked amongst each others). Apiato provides a command to list all dependencies for one specific container. The command does take the Apiato::call() and $this->call() (with use X) into account.

If you want to get the dependencies for one container, you can call

php artisan apiato:list:dependencies app/Containers/X

where X is the name of the requested container (e.g., User).

本文章首发在 LearnKu.com 网站上。

上一篇 下一篇
《L02 从零构建论坛系统》
以构建论坛项目 LaraBBS 为线索,展开对 Laravel 框架的全面学习。应用程序架构思路贴近 Laravel 框架的设计哲学。
《G01 Go 实战入门》
从零开始带你一步步开发一个 Go 博客项目,让你在最短的时间内学会使用 Go 进行编码。项目结构很大程度上参考了 Laravel。
讨论数量: 0
发起讨论 只看当前版本


暂无话题~