fsdfsd
This commit is contained in:
alexandre-pereira committed 2015-03-20 19:54:29 +01:00
1 parent 20a91eb015
commit 3d7dc95660
2 files changed
+2 -2

No files matched your search

+1 -1
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)));
}
}
+1 -1
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];