Replies: 2 comments 1 reply
-
You can make your own tag to get a user's cookies, then use that to check if the cookie you're looking for exists. (getting the cookies itself is a Laravel thing) You could also use JavaScript to get a user's cookies, it's possible that may work too, depending on your use case. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the hint with the tag, I can read the cookie with that. |
Beta Was this translation helpful? Give feedback.
-
I want to check if a cookie is set in my antlers template. My project is based on laravel and uses statamic as frontend.
What is the correct way to check for a cookie?
Beta Was this translation helpful? Give feedback.
All reactions