Can anyone please help me how to save multiple selection in the DB?
<div class="col-sm-10">
<select id="tag_list" name="tag_list[]" class="form-control" multiple></select>
</div>
Controller function is like this:
public function store(Request $request)
{
$comics = new Comic();
$tags = $request->input('tag_list');
$comics->appreance = implode(',', $tags);
$comics->save();
return redirect('/comic');
}
Please help, thanks.