Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

saikishoreram's avatar

Getting the cookie value returns expiry date as well

Couldn't debug this as am quite new to laravel. Can anyone please help? when i try to retrieve my cookie value, i get it along with the expiry time as well.

$value = $request->cookie('cookie.key'); returns cookie.key=1;expires=Mon Jun15,2021...

How to get just the value of it here?

0 likes
1 reply

Please or to participate in this conversation.