/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($namespace, $project_path) { $project = Project::leftJoin('namespaces', function ($join) { $join->on('projects.namespace_id', '=', 'namespaces.id'); })->where('projects.path', '=', $project_path)->where('namespaces.path', '=', $namespace)->first(['projects.*']); return View::make('projects.edit')->withPageTitle(trans('dashboard.projects.new.title') . ' - ' . trans('dashboard.dashboard'))->withProject($project)->withGroupId('')->withGroups(Group::all()); }