Hi, I'd solve it this way. Since multiple checkboxes are passed to the server as an array, what I do is to loop through the array e.g
$colors = $request->colors
foreach ($colors as $color){
Color::create($color);
}
And that should be it.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community