vendredi 9 août 2019

Laravel Collective checkbox element for laravel many-many relationship

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">
            
            <label></label>   
        </div>
        @endforeach    
    @endif
</div>



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire