/** * Display a list of active talents * * @param UserRepository $userRepository * @return $this */ public function index(UserRepository $userRepository) { $talents = $userRepository->findActiveTalents(Input::get('tag'), Input::get('describes'), Input::get('location'), null, 12, Input::get('professions')); $describes = Skill::lists('name', 'id')->all(); $professions = Profession::lists('name', 'id')->all(); return view('talent.index')->with('talents', $talents)->with('describes', $describes)->with('professions', $professions); }
/** * @param $startup * @return $this */ public function edit($startup) { $startup = Startup::where('url', '=', $startup)->firstOrFail(); $tags = Tag::lists('name', 'id')->all(); $stages = Stage::lists('name', 'id')->all(); $needs = Skill::lists('name', 'id')->all(); return view('startups.edit')->with('startup', $startup)->with('tags', $tags)->with('stages', $stages)->with('needs', $needs); }