lundi 7 août 2017

Laravel how to use code inside collective dropdown

I have an array and i use foreach, below is code

@foreach($param2 as $par)

@endforeach

now i want to use the $par->account in drop down

i am using below code

    {!! Form::select('[
'option' => $par->account
], null, ['placeholder' => '<select>','class'=>'form-control']) !!}

there are 3 items in array, but it shows only single item.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire