如何在Laravel 5中创建软件包? [英] How create package in Laravel 5?
问题描述
php artisan workbench vendor/package --resources
命令在 laravel 5 中不可用,但是现在如何在laravel 5中创建包?
command is not available in laravel 5, but how now create package in laravel 5 ?
推荐答案
laravel工作台已在laravel 5中重命名为文档中的包开发"
The laravel workbench has been renamed in laravel 5 to "Package Development" in the documentation
http://laravel.com/docs/master/packages
请注意,不再有工作台命令,您需要创建自己的包结构,因为Laravel创建者希望限制所创建的包与Laravel框架之间的依赖关系(
Notice that there is no longer a workbench command and you need to create your own package structure, as the Laravel creator want to limit the dependency between created packages and the Laravel framework (#ref)
更新:Laravel 5现在很稳定,illuminate/workbench
包可以在laravel 5应用程序中使用,正如我在
UPDATE: Laravel 5 is now stable and the illuminate/workbench
package can be used in a laravel 5 application as I suggested in this post
这篇关于如何在Laravel 5中创建软件包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!