/** * Show the application welcome screen to the user. * * @param StartupRepository $startupRepository * @param UserRepository $userRepository * @return Response */ public function index(StartupRepository $startupRepository, UserRepository $userRepository) { $startups = $startupRepository->allActive(null, null, DB::raw('RAND()'), 2); $talent = $userRepository->findActiveTalents(null, null, null, DB::raw('RAND()'), 2); return view('welcome')->with('startups', $startups)->with('talents', $talent); }
/** * Index that shows all active startups. * * @return Response */ public function index() { $startups = $this->repository->allActive(Input::get('tag'), Input::get('needs')); $needs = Skill::lists('name', 'id')->all(); return view('startups.index')->with('startups', $startups)->with('needs', $needs); }