Answer the question
In order to leave comments, you need to log in
Why doesn't Laravel clear cookies?
At the moment, I started working with cookies and there was such a trouble. CookieJar , which uses the laravel standard, creates cookies, but does not delete them ;( I
did this:
Cookie::forget('myname');
Cookie::unqueue('myname');
Answer the question
In order to leave comments, you need to log in
$cookie = \Cookie::forget('myCookie');
return response('view')->withCookie($cookie);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question