Ejemplo n.º 1
0
 public function inscSave(Request $request)
 {
     $ids = explode('&', $request['allData'], -1);
     ActivityParticipant::where('id_activity', '=', $ids[0])->delete();
     $i = 1;
     $tam = count($ids);
     for (; $i < $tam; $i++) {
         ActivityParticipant::create(['id_activity' => $ids[0], 'id_participant' => $ids[$i]]);
     }
     return $this->same_insc($ids[0]);
 }