*/ public function rules() { return []; } public function persist(Member $member, CourseMember $course): void { try { auth()->user()->api()->deleteCourse($member->nami_id, $course->nami_id); } catch(NamiException $e) { throw ValidationException::withMessages(['id' => 'Unbekannter Fehler']); } $course->delete(); } }