This repository has been archived on 2021-09-15. You can view files and clone it, but cannot push or open issues or pull requests.
2015-02-12 17:58:03 +00:00
|
|
|
<?php namespace App\Http\Controllers;
|
|
|
|
|
2015-02-20 14:00:09 +00:00
|
|
|
use App\Models\User;
|
2015-02-25 18:48:34 +00:00
|
|
|
use Response;
|
|
|
|
use App\Models\Oeuvre;
|
2015-02-17 14:56:30 +00:00
|
|
|
|
2015-02-12 17:58:03 +00:00
|
|
|
class GameController extends Controller {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Create a new controller instance.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function __construct()
|
|
|
|
{
|
2015-02-15 06:12:44 +00:00
|
|
|
//
|
2015-02-12 17:58:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Show the application dashboard to the user.
|
|
|
|
*
|
|
|
|
* @return Response
|
|
|
|
*/
|
|
|
|
public function index()
|
|
|
|
{
|
2015-02-17 14:56:30 +00:00
|
|
|
$res = User::referents()->get();
|
2015-02-16 01:41:12 +00:00
|
|
|
return view('home',['referent' => $res]);
|
2015-02-12 17:58:03 +00:00
|
|
|
}
|
|
|
|
|
2015-02-15 16:10:23 +00:00
|
|
|
/**
|
|
|
|
* Show referent games
|
|
|
|
*
|
|
|
|
* @param String $id
|
|
|
|
* @return Response
|
|
|
|
*/
|
|
|
|
public function showReferentGames($id)
|
|
|
|
{
|
|
|
|
return view('referent_games', ['referent' => $id]);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Show one referent game
|
|
|
|
*
|
|
|
|
* @param String $id
|
|
|
|
* @param String $idGame
|
|
|
|
* @return Response
|
|
|
|
*/
|
|
|
|
public function showOneReferentGame($id, $idGame)
|
|
|
|
{
|
|
|
|
return view('one_referent_game', ['referent' => $id, 'game' => $idGame]);
|
|
|
|
}
|
|
|
|
|
2015-02-12 17:58:03 +00:00
|
|
|
}
|