Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Commit dfbc1f8

Browse files
authored
Fix unqueueing cookies
This seems to have changed in Laravel 6. The key is just the array index of the queued cookie, but `unqueue` takes the name of the cookie, and as a result, no cookies are actually unqueued.
1 parent c79eb3f commit dfbc1f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Server/Resetters/ResetCookie.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function handle(Container $app, Sandbox $sandbox)
2020
if (isset($app['cookie'])) {
2121
$cookies = $app->make('cookie');
2222
foreach ($cookies->getQueuedCookies() as $key => $value) {
23-
$cookies->unqueue($key);
23+
$cookies->unqueue($value->getName());
2424
}
2525
}
2626

0 commit comments

Comments
 (0)