findOrFail($doctorId); } public function deleteDoctor($doctorId): int { return Doctor::destroy($doctorId); } public function createDoctor(array $doctorData): Model|Doctor { return Doctor::create($doctorData); } public function updateDoctor($doctorId, array $doctorData): bool { return Doctor::find($doctorId)->update($doctorData); } }