clearDraw($auditions); } if ($auditions instanceof Collection) { $this->clearDraws($auditions); } } public function clearDraw(Audition $audition): void { $audition->removeFlag('drawn'); DB::table('entries')->where('audition_id', $audition->id)->update(['draw_number' => null]); $message = 'Cleared draw for audition #'.$audition->id.' '.$audition->name; $affected['auditions'] = [$audition->id]; auditionLog($message, $affected); } public function clearDraws(Collection $auditions): void { foreach ($auditions as $audition) { $this->clearDraw($audition); } } }