問(wèn)題描述
php artisan workbench vendor/package --resources
命令在 laravel 5 中不可用,但現(xiàn)在如何在 laravel 5 中創(chuàng)建包?
command is not available in laravel 5, but how now create package in laravel 5 ?
推薦答案
laravel 工作臺(tái)已在 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
請(qǐng)注意,不再有工作臺(tái)命令,您需要?jiǎng)?chuàng)建自己的包結(jié)構(gòu),因?yàn)?Laravel 創(chuàng)建者希望限制創(chuàng)建的包與 Laravel 框架之間的依賴關(guān)系 (#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 現(xiàn)在很穩(wěn)定,illuminate/workbench
包可以在 Laravel 5 應(yīng)用程序中使用,正如我在 這篇文章
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
這篇關(guān)于如何在 Laravel 5 中創(chuàng)建包?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!