laravel-form-builder
laravel-form-builder copied to clipboard
Laravel Form builder for version 5+!
Hello, What is the best way to do something like this? ``` Email ``` I changed config file with this: ``` 'defaults' => [ 'wrapper_class' => 'form-group row', ``` Edited...
I believe ChoiceType labels should be set up in similar manner as in `FormField::setupLabel()`.
In the demo: ``` ->add('languages', 'choice', [ 'choices' => [['id' => 1, 'en' => 'English'], ['id' => 2, 'de' => 'German'], ['id' => 3, 'fr' => 'France']], 'selected' => function...
Hi, I'm struggling to get the relation's data inside the form of a collection field. I would like to set the label with the group name and per characteristic (the...
Hey! How can I create a form with existing Eloquent Model? Something like: ``` class Post extends Model { public function buildForm() { ..... } } ```
Hi ๐, First of all thank you for the hard work you do with this package, it's been a pleasure to use. What I do like to note is that...
I'm trying to delete a file field, but it is not deleted and will remain in place. ```$form->remove('file_field');```
Hi @kristijanhusak, thanks for your work with this package! It's awesome! I'm using [https://github.com/spatie/laravel-translatable](url) to make eloquent models translatable. Translations are stored as json. Once the translatable trait is added...
exemple what i want : ``` Name ``` -------------------------------- The code in view: ``` {!! form_label($form->name,['attr'=>['class'=>'col-sm-2 col-form-label']]) !!} {!! form_widget($form->name) !!} ``` -------------------------------- see the resulat i have: ``` Name...
I use Laravel 5.6 and your package, but I can't show an error when repeated fields are not the same. I have 2 repeated fields in my form (email and...