Releases: bgaze/bootstrap-form
Releases · bgaze/bootstrap-form
Use a fork of LaravelCollective Html to ensure compatibility with Laravel 11+
Remove test class from form groups
v1.0.9 Remove test class from form groups
Added color input
Added color input method and it's @color directive alias
Fix model binded form route error
- Fixed
Indirect modification of overloaded propertyerror when providing update route as array on model binded form - Linted code, corrected typos & improved phpdoc annotations
- Added badges into readme file
Fix weird PHP behaviour messing with checkboxes and radios label
v1.0.6 Improve empty label check
Add id attribute to hidden inputs
- Moved
flattenNamefunction toHasSettingstrait. - As for others inputs, add
idattribute tohiddeninputs if missing.
@hidden('hidden1')
@hidden('hidden2', 'some-value', ['id' => 'custom-id'])Generated HTML:
<input id="hidden1" name="hidden1" type="hidden">
<input id="custom-id" name="hidden2" type="hidden" value="some-value">Implemented group option inheritance
- Implemented group option inheritance to ease form customizations.
Group attributes can be defined at multiple levels : application wide through package configuration, form wide through form options, and at field level.
Inheritance is supported : provided option is merged on parent option. - Improved config management.
- Updated documentation.
Show errors feedback on input groups
v1.0.3 Issue 4 - Show errors feedback on input groups
Preserve attributes for check group children
When buidling check group, provided attributes weren't passed when building children inputs.
Manage options keys and HTML attributes collisions
Options take precedence on attributes, so using an option key as HTML attribute wasn't possible.
This is now possible by adding a ~ prefix on the key to specify an HTML attribute instead of a form or field option.
Exemple:
@select('multiple_select', null, ['foo' => 'Foo', 'bar' => 'Bar', 'baz' => 'Baz'], null, [
'multiple' => true,
'size' => 'lg', // Size option
'~size' => 2, // Size attribute
])