$exerciseId, 'skill_id' => $skillId, 'created_at' => $now, 'updated_at' => $now, ]; } if (!empty($data)) { ExerciseSkill::insert($data); } } }