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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand forget() example to include removing multiple keys at once #9809

Merged
merged 2 commits into from
Aug 6, 2024
Merged

Conversation

u01jmg3
Copy link
Contributor

@u01jmg3 u01jmg3 commented Aug 6, 2024

  • Code formatting copied from session.md. However, I realise $collection->all(); is no longer present which other collection examples use.

docs/session.md

Lines 223 to 227 in 696cad1

// Forget a single key...
$request->session()->forget('name');
// Forget multiple keys...
$request->session()->forget(['name', 'status']);

@taylorotwell taylorotwell merged commit 0d2416b into laravel:11.x Aug 6, 2024
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.

2 participants