/** * Show the form for editing the specified project. * * @param int $id * @return Response */ public function edit($id = NULL) { parent::show(); $project = Project::find($id); $portfolios = Portfolio::allPortfoliosSelectOptions(); $path = $this->project_uri; return View::make('projects.edit', compact('project', 'portfolios', 'path')); }