/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $prereq = PreReq::findOrFail($id); $urgs = Urg::has('proyectos', '!=', 0)->get(); return view('prereqs.formPreRequisicion')->with('prereq', $prereq)->with('urgs', $urgs); }