fsdfsd
This commit is contained in:
alexandre-pereira 2015-03-20 19:53:40 +01:00
parent 20a91eb015
commit 3d7dc95660
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ class GameController extends Controller {
break;
}
return Response::make('all good!')->withCookie(Cookie::forever('trophee', $values));
return Response::make('all good!')->withCookie(Cookie::forever('trophee', json_encode($values)));
}
}

View File

@ -22,7 +22,7 @@ class HomeController extends Controller {
public function index()
{
$values = Cookie::get('trophee');
$values = json_decode(Cookie::get('trophee'));
print_r($values);
if ($values === false)
$values = [0, 0, 0];