/**
  * [selectAll description]
  * @return [type] [description]
  */
 public function selectAll()
 {
     return Tournament::all();
 }
Example #2
0
 /**
  * Display the specified team.
  *
  * @param  int  $id
  * @return Response
  */
 public function show($id)
 {
     $team = Team::findOrFail($id);
     $users = User::all();
     $tournaments = Tournament::all();
     return view('/teams/team-details', ['team' => $team, 'users' => $users, 'tournaments' => $tournaments]);
 }