-
Notifications
You must be signed in to change notification settings - Fork 45
Remove the laravelcollective/html
package
#195
Comments
You could use
to generate forms ^^ looks ugly ... |
Yeah, it's easier to just use the proper tag IMO. Gets rid of a dependency too hopefully. |
Maybe it's easier for inputs, because you can more easily define the selected element and don't have to write an if clause every time ... (not sure though if there is an easier way with twig) https://github.com/mybb/mybb2/blob/master/resources/views/admin/partials/users/profile_field_form.twig#L12 for example |
Yeah, we could probably define a twig extensions for select boxes that just renders a template. |
I personally prefer to use We can ask @LaravelCollective to add a way to use {{ form_open({'route': ['topics.reply', {'id': topic.id, 'slug': topic.slug}], 'method': 'post', 'id': 'topicreply'}) }} |
Either way, we need to be able to use a hash rather than relying on positional arguments. |
@ATofighi there is the |
We could always do |
Yep, that's how I've been fixing it personally.
|
It's will be removed and all forms will be created using normal html tags? |
Yes, that's the plan. To create forms, you should write the normal HTML for a form, and use |
I agree with removing this is makes it unnecessarily complex, when has there even been a problem with writing standard HTML? |
@036 Writing HTML isn't a problem but populating a form manually is more difficult. The package provides a convenient way to bind models to forms: https://laravelcollective.com/docs/5.3/html#form-model-binding |
Using laravel collective with vue is really big problem and not working together so if you want in the future use vue, you will need replace form created with collective to html forms. |
I'm not sure what the original intent was, but we should remove
laravelcollective/html
. It makes things unduly complex and difficult. For instance, one is limited when opening a form to the following:You cannot instead do:
Constructing a
<form>
tag isn't difficult, so there's not much use for the library in my opinion.The text was updated successfully, but these errors were encountered: