コード例 #1
0
ファイル: HomeController.php プロジェクト: hllau9/Euro2016
 /**
  * Show the application dashboard.
  *
  * @return Response
  */
 public function index()
 {
     $scores = new ScoreClass();
     $ScoreTable = $scores->ScoreTable();
     //return view('home');
     return view('home', ['ScoreTable' => $ScoreTable]);
 }
コード例 #2
0
ファイル: GameController.php プロジェクト: hllau9/Euro2016
 public function index()
 {
     if (!\Gate::allows('admin-check')) {
         $matches = $this->getMatches('A');
         $matches16 = $this->getMatches('B');
         $matches8 = $this->getMatches('C');
         $matches4 = $this->getMatches('D');
         $matches2 = $this->getMatches('E');
         $ownscore = new ScoreClass();
         $totalscore = $ownscore->Scores(Auth::user()->id);
         return view('Game.index', ['matches' => $matches, 'matches16' => $matches16, 'matches8' => $matches8, 'matches4' => $matches4, 'matches2' => $matches2, 'totalscore' => $totalscore]);
     } else {
         return Redirect::action('AdminController@index');
     }
 }
コード例 #3
0
ファイル: AdminController.php プロジェクト: hllau9/Euro2016
 public function Scores()
 {
     $scores = new ScoreClass();
     $ScoreTable = $scores->ScoreTable();
     return View("Admin.Scores", ['ScoreTable' => $ScoreTable]);
 }