如何在 Laravel 5 中创建包?

How create package in Laravel 5?(如何在 Laravel 5 中创建包?)
本文介绍了如何在 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 中重命名为文档中的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 中创建包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

In PHP how can you clear a WSDL cache?(在 PHP 中如何清除 WSDL 缓存?)
failed to open stream: HTTP wrapper does not support writeable connections(无法打开流:HTTP 包装器不支持可写连接)
Stop caching for PHP 5.5.3 in MAMP(在 MAMP 中停止缓存 PHP 5.5.3)
Caching HTTP responses when they are dynamically created by PHP(缓存由 PHP 动态创建的 HTTP 响应)
Memcached vs APC which one should I choose?(Memcached 与 APC 我应该选择哪一个?)
What is causing quot;Unable to allocate memory for poolquot; in PHP?(是什么导致“无法为池分配内存?在 PHP 中?)