jeudi 1 novembre 2018

Array of selected options in Form::select?

I have an array that contains ids of selected options in select list (html). In Laravel it looks as:

<?=Form::select('type_work[]', array(1, 2), array(1, 2), array());?>

Where second parameter is incoming data to build options, and third parameter is array of selected options (id).

Why it does not work in Laravel?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire