<input type="checkbox" value="1" name="ck[]" />
<input type="checkbox" value="2" name="ck[]" />
in controller:
$ckid=$r->get('ck');
foreach($ckid as $ckid){
model name::create([
'..........'=>'1',
'...........'=>$ckid,
]);
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community