In Laravel 4, is there a way to set a queue a cookie that last forever?
Basically I want to mix the functionality of:
Cookie:queue()
and
Cookie:forever()
Cookie::queue($name, $value, 2628000)
If you look at the Cookie::forever()
code, it defines "forever" as 2628000
(five years)
Cookie::queue(Cookie::forever($name, $value));
return $response;
or
$response = Response('hello');
$response->withCookie(Cookie::forever($name, $value));
return $response;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With