/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $animal = Animal::with('medications')->findOrFail($id); return view('animal.edit', compact('animal')); }