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