I would like to use Laravel cookies but I cannot seem to make it work.

So basicaly I'd like to make the Laravel equivalent to :

```
setcookie("TestCookie", $value, time() + 3600 * 24 * 365);
echo $_COOKIE["TestCookie"];

```

I used this, without success, it's not printing anything :

```
Cookie::make('TestCookie', $value, 60 * 24 * 365);
echo Cookie::get('TestCookie');

```

Same goes for

```
Cookie::queue('TestCookie', $value, 60 * 24 * 365);
echo Cookie::get('TestCookie');

```

Or

```
Cookie::forever('TestCookie', $value);
echo Cookie::get('TestCookie');

```

I'd like to do this in my BaseController \_\_construct method :

```
if (Session::has('hash') && !Cookie::has('hash'))
{
    Cookie::queue('hash', Session::get('hash'), $this->cookieLifeTime);
}
else if (Cookie::has('hash') && !Session::has('hash'))
    Session::put('hash', Cookie::get('hash'));
else if (!Session::has('hash') && !Cookie::has('hash'))
{
    $hash = str_shuffle(sha1(uniqid()));
    Session::put('hash', $hash);
    Cookie::queue('hash', Session::get('hash'), $this->cookieLifeTime);
}

```

Thanks :)