/** * Display the specified resource. * * @param int $id * @return Response */ public function show($id) { $opportunity = $this->opportunity->findOrFail($id); $group = Opportunity::find($opportunity->id); $skills = Skill::all(); $assigned = $group->skills->lists('id'); return View::make('opportunities.show', compact('opportunity', 'group', 'skills', 'assigned')); }