Exemplo n.º 1
0
 public function index()
 {
     $team = Team::find(config('mls.team_id'));
     $gameList = GameRepository::getListByTeamId($team->id);
     $tournamentList = Tournament::all();
     $tournamentList = $tournamentList->lists('name', 'id');
     return view('frontend.game.list')->with('team', $team)->with('gameList', $gameList)->with('tournamentList', $tournamentList);
 }
 public function index()
 {
     $tournaments = Tournament::all();
     return view('backend.tournaments.list')->with('tournaments', $tournaments)->with('statusList', Tournament::getStatusList());
 }
Exemplo n.º 3
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $tournaments = Tournament::all();
     return view('tournament.index', compact('tournaments'));
 }