Quantcast
Channel: How to use Laravel cookies? - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by Marcin Nabiałek for How to use Laravel cookies?

You need to change:Cookie::queue('TestCookie', $value, 60 * 24 * 365);echo Cookie::get('TestCookie');into:if (Cookie::has('TestCookie')) { echo Cookie::get('TestCookie');}else {...

View Article



Answer by Danny for How to use Laravel cookies?

Cookie::make only creates new instances of Cookie class.After you created an instance you should return it with your Response$cookie = Cookie::make('TestCookie', $value, 60 * 24 * 365);return...

View Article

How to use Laravel cookies?

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...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images