fsfsd
fsdfsd
This commit is contained in:
parent
20a91eb015
commit
3d7dc95660
@ -98,7 +98,7 @@ class GameController extends Controller {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Response::make('all good!')->withCookie(Cookie::forever('trophee', $values));
|
return Response::make('all good!')->withCookie(Cookie::forever('trophee', json_encode($values)));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -22,7 +22,7 @@ class HomeController extends Controller {
|
|||||||
|
|
||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
$values = Cookie::get('trophee');
|
$values = json_decode(Cookie::get('trophee'));
|
||||||
print_r($values);
|
print_r($values);
|
||||||
if ($values === false)
|
if ($values === false)
|
||||||
$values = [0, 0, 0];
|
$values = [0, 0, 0];
|
||||||
|
Reference in New Issue
Block a user