/** * Show the application welcome screen to the user. * * @return Response */ public function participants(Request $request) { $tournament_id = $request->input('tournament_id'); $ss = new Scraper(); $new_participants = $ss->get_participants($tournament_id); $tournament = \DB::table('tournaments')->where('tournament_id', '=', $tournament_id)->orderBy('start_date', 'desc')->get(); $participants = \DB::table('participants')->where('tournament_id', '=', $tournament_id)->get(); //return view('pages/participants', compact('$tournament', 'participants')); return redirect('admin/scraper')->with('success', 'participants downloaded successfully'); }