Skip to content

Commit 56221a4

Browse files
committed
formatting
1 parent 6c7e254 commit 56221a4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

session.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,12 @@ If you need to keep your flash data around for several requests, you may use the
177177
<a name="deleting-data"></a>
178178
### Deleting Data
179179

180-
The `forget` method will remove a piece (or multiple pieces if you pass an array) of data from the session. If you would like to remove all data from the session, you may use the `flush` method:
180+
The `forget` method will remove a piece of data from the session. If you would like to remove all data from the session, you may use the `flush` method:
181181

182+
// Forget a single key...
182183
$request->session()->forget('key');
183-
184+
185+
// Forget multiple keys...
184186
$request->session()->forget(['key1', 'key2']);
185187

186188
$request->session()->flush();

0 commit comments

Comments
 (0)