为软件包Laravel 5创建工匠命令 [英] Create artisan commands for package Laravel 5
问题描述
我正在为Laravel 5开发一个软件包,现在我需要为该软件包创建一些新的artisan命令.我已阅读以下文章,但仍然遇到问题
I am developing a package for Laravel 5, now I need to create some new artisan command for this package. I have read the following articles but still stuck
http://laravel.com/docs/5.0/bus
http://laravel.com/docs/5.0/artisan
问题:我需要做的是将laravel 5的一些手工艺命令分组为一个命令,然后将此新命令添加到我的软件包中,有人可以帮助我完成我必须采取的步骤吗?
Question: What I need to do is grouping some artisan commands of laravel 5 into a single command and then add this new command to my package can anyone help me through the steps I have to take?
推荐答案
我可能在写一个巨大的答案,但是这段视频比100个字更好: https://www.youtube.com/watch?v=BviKET-QTEQ
I could be writing a huge answer but this video is better then 100 words: https://www.youtube.com/watch?v=BviKET-QTEQ
还有文档的链接: http://laravel.com/docs/5.0/commands
这篇关于为软件包Laravel 5创建工匠命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!