/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index(Team $team) { $this->getOverviewChart(); $allUsers = User::all()->sortBy('surname'); $allTeams = $team->getAllTeams(); return view('clubOverview', ['users' => $allUsers, 'teams' => $allTeams]); }
public function getRegister(Team $team) { return view('auth.register', ['teams' => $team->getAllTeams()]); }