/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $proyecto = Project::find($id); $locations = explode(',', $proyecto->location); $gerencias = Management::lists('name', 'id'); $disenos = Desing::lists('name', 'id'); return view('admin.project.edit', compact('proyecto', 'locations', 'gerencias', 'disenos')); }