samedi 23 janvier 2016

insert multiple checkboxes to laravel 5 database

I want to store multiple checkboxes from a form to database.

    &nbsp{!! Form::checkbox('expectations[]','New anerobic routines',true); !!} Find new anerobic routines <br>
 &nbsp{!! Form::checkbox('expectations[]','New aerobic routines',true); !!} Find new aerobic routines <br>
 &nbsp{!! Form::checkbox('expectations[]','Follow',true); !!} 

I won't need these values later for viewing . Basically it would be for using them later for showing user data based on this data.

What's your suggestion to do so?

I already have the store method in the controller ready to insert data to db.

Thanks.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire