maj icon et page game

This commit is contained in:
Jerome Morjon
2015-03-16 19:47:57 +01:00
parent 33f8be4a19
commit 8ec8fb4485
15 changed files with 79 additions and 5 deletions

View File

@ -1,7 +1,7 @@
<?php namespace App\Http\Controllers;
use App\Referent;
use Cookie;
class HomeController extends Controller {
/**
@ -22,7 +22,9 @@ class HomeController extends Controller {
public function index()
{
return view('frontend/games');
$idRef = Cookie::get('referent');
$ref = Referent::find($idRef);
return view('frontend/games', ['ref' => $ref]);
}
public function choisirRef()