[英]Should I use laravel collective or another component?
I'm starting with Laravel and I've some doubts about the external components. 我从Laravel开始,我对外部组件有些怀疑。
I've already used the laravel collective and the adamwathan/bootforms and the both show me advantage and disadvantage. 我已经使用了laravel集体和adamwathan / bootforms ,两者都显示了我的优势和劣势。 I've searched for information or discussion about this and a I didn't find anything
我搜索了有关这方面的信息或讨论,我没有找到任何东西
For example, I can build forms extremely fast with these components, but I got limited sometimes. 例如,我可以使用这些组件非常快速地构建表单,但有时我受到限制。
According with the about session of the laravel Collective they say: 根据laravel Collective的大约会议,他们说:
The Laravel Collective is a community organization designed to maintain components that have been removed from the Laravel Framework core
Laravel Collective是一个社区组织,旨在维护已从Laravel Framework核心中删除的组件
So, if the form is removed from the core, should I continue using this component? 那么,如果从核心中删除表单,我应该继续使用此组件吗?
And in the readme from the Bootform, they say 他们说,在Bootform的自述文件中
Probably not perfect for your super custom branded ready-for-release apps, but a huge time saver when you are still in the prototyping stage!
可能不适合您的超级定制品牌准备发布应用程序,但是当您仍处于原型设计阶段时可节省大量时间!
What do you think about using external components? 您如何看待使用外部组件? Do you think it's a good ideia to use or do you prefer the original core from the Laravel?
你认为这是一个很好的意识形态,或者你更喜欢Laravel的原始核心?
After 3 weeks working with Laravel. 与Laravel合作3周后。 I've learned somethings:
我学到了一些东西:
If you want to build easy forms without html, I recommend you to use the AdamWathan bootform or Laravel collective . 如果你想构建没有html的简单表单,我建议你使用AdamWathan bootform或Laravel集合 。 The only problem is: These tools doesn't has a good option with you want a very customizable field.
唯一的问题是:这些工具没有一个很好的选择,你想要一个非常可定制的领域。
Bootform Bootform
Pros 优点
Cons 缺点
Laravel Collective Laravel Collective
Pros 优点
What I do 我所做的
Actually, I'm working with Collective and html. 实际上,我正在使用Collective和html。 I use a mix of the both, when I need a simple field or specific fields (csrf protection, for example) I use collective and if I need a more customizable field, like a button with an icon or a special element in bootstrap, I use just HTML.
我使用两者的混合,当我需要一个简单的字段或特定的字段(例如csrf保护)我使用集合,如果我需要一个更可自定义的字段,如带有图标的按钮或引导程序中的特殊元素,我只使用HTML。
Recently I've had the same dilemma, so I decided to examine Laravel Collective Html package. 最近我遇到了同样的困境,所以我决定检查Laravel Collective Html包。
I wanted to share my thoughts, therefore I created the following post: Is it beneficial to add Laravel Collective Html into your Laravel Project 我想分享我的想法,因此我创建了以下帖子: 将Laravel Collective Html添加到Laravel项目中是否有益
Hope you will find it useful. 希望你会发现它很有用。
归结为个人偏好,Laravel Collectives让您轻松预先选择选择输入,开箱即用csrf等...我发现自己越来越少地使用它然后最终完全停止了它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.