8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f820acc commit 7620e6cCopy full SHA for 7620e6c
src/Illuminate/Cookie/Middleware/EncryptCookies.php
@@ -195,18 +195,7 @@ protected function encrypt(Response $response)
195
*/
196
protected function duplicate(Cookie $cookie, $value)
197
{
198
- return new Cookie(
199
- $cookie->getName(),
200
- $value,
201
- $cookie->getExpiresTime(),
202
- $cookie->getPath(),
203
- $cookie->getDomain(),
204
- $cookie->isSecure(),
205
- $cookie->isHttpOnly(),
206
- $cookie->isRaw(),
207
- $cookie->getSameSite(),
208
- $cookie->isPartitioned()
209
- );
+ return $cookie->withValue($value);
210
}
211
212
/**
0 commit comments