I made a cookie with my controller, and it seems to work, because if I check my resources in my developer tools, it is. But now I want to do actions with it, in my opinion, but this does not seem to work, this is the code I used in my view:
@if (Cookie::get('cookiename') !== false)
<p>cookie is set</p>
@else
<p>cookie isn't set</p>
@endif
it always returns true
Can anybody help me?
source
share