Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.x] Add Cookie::queueForget() method #37072

Merged
merged 3 commits into from Apr 21, 2021
Merged

Conversation

dmitry-ivanov
Copy link
Contributor

@dmitry-ivanov dmitry-ivanov commented Apr 21, 2021

This PR adds the Cookie::queueForget() method to queue a cookie to expire with the next response.

After reading docs, I've noticed that in order to do that it's recommended to use the following combination:

Cookie::queue(Cookie::forget('name'));

This PR makes it a bit more readable and easier for the end-user:

Cookie::queueForget('name');

PS: Here's the proper PR to fix the docs 馃憤

@taylorotwell
Copy link
Member

Renamed method to expire just to keep it simple

@dmitry-ivanov dmitry-ivanov deleted the 8.x branch April 22, 2021 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants