update($data); } public function deleteRequirement(string $id): bool { return CourseRequirement::find($id)->delete(); } }