The correct way to get the cookie value will be as you used
$request->cookie('name');
But the helper cookie method creates a new cookie, not a value. Therefore, when you do dd(cookie('CookieName')); , it creates a cookie with this name and does not matter and returns it.
Laravel encrypts and decrypts the cookie value on the fly without user intervention. Check how you configure cooking again, and also make sure you set APP_KEY , which will be used for encryption. Changing this key will invalidate all old cookies.
source share