Пример #1
0
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function show($id)
 {
     $patient = Patient::with('prescriptions')->findOrFail($id);
     $patient->prescriptions->load('author', 'regimen', 'diagnosis');
     return view('patients.show', compact('patient'));
 }