在laravel 5数据库中插入多个复选框

在laravel 5数据库中插入多个复选框,laravel,laravel-5,laravel-5.1,blade,Laravel,Laravel 5,Laravel 5.1,Blade,我想将多个复选框从表单存储到数据库 &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 <

我想将多个复选框从表单存储到数据库

    &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); !!} 
{!!Form::checkbox('expectations[]','New anerobic routines',true);!!}查找新的anerobic routines
 {!!Form::checkbox('expectations[]','New havious routines',true);!!}查找新的有氧运动路线
 {!!Form::checkbox('expectations[]','Follow',true);!!}
我以后不需要查看这些值。基本上是为了以后使用它们来显示基于这些数据的用户数据

你的建议是什么

我已经在控制器中准备好了store方法,可以将数据插入db


谢谢。

保存值的最佳方法是在json to列上,如果您只需要向用户查看数据,而不需要通过json列进行检查,就像这样的
{['key','value'],['key','value']}

非常一般。我现在有了一个运行良好的代码——除了它不向数据库插入数据之外。你能告诉我怎么了吗?没有在数据库中插入json值吗?