i wanna use laravel collective for my input form,im using this to input datas for pivot table in laravel eloquent many-to-many,and i wanna use input data using checkbox element(hoby),the problem is idont know why we type at the first parameter of laravelCollective as string and way we have to type as array,anyone can explain me?in theory,thanks in advance for your help
- <div class="form-check">
- @if (count($list_hobi)>0)
- @foreach ($list_hobi as $key => $value)
- <div class="checkbox">
- {{Form::checkbox('hobi[]',$key,null)}}
- <label>{{$value}}</label>
- </div>
- @endforeach
- @endif
- </div>