We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06ba07f commit d75ba43Copy full SHA for d75ba43
src/Form/Element/CheckboxGroup.php
@@ -35,4 +35,9 @@ public function setOptions($options = [])
35
36
return $this;
37
}
38
+
39
+ public function value()
40
+ {
41
+ return $this->value ? : [];
42
+ }
43
src/resources/views/default/element/checkbox-group.blade.php
@@ -1,6 +1,7 @@
1
<div class="form__element form__element_type_checkbox-group @if($error) form__element_error @endif {{$class}}">
2
<label class="form__label">{{ $label }}</label>
3
<div class="form__element-container">
4
+ <input type="hidden" value="" name="{{ $elementName }}">
5
@foreach ($options as $key => $label)
6
<label>
7
<input @foreach($attributes as $attributeName => $attributeValue) {{ $attributeName }}="{{ $attributeValue }}" @endforeach type="checkbox"
0 commit comments