問題描述
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 中重命名為文檔中的Package Development"
The laravel workbench has been renamed in laravel 5 to "Package Development" in the documentation
http://laravel.com/docs/master/packages
請注意,不再有工作臺命令,您需要創建自己的包結構,因為 Laravel 創建者希望限制創建的包與 Laravel 框架之間的依賴關系 (#ref)
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 中創建包?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!