Esempio n. 1
0
 public function educationDestroy($id)
 {
     $data = \App\DoctorEducation::find($id);
     $doctor_id = $data->doctor_id;
     $data->delete();
     Session::flash('success', "Data pendidikan berhasil dihapus.");
     return redirect()->route('clinic.doctor.show', [$doctor_id]);
 }