Skip to content

Commit 30fecbb

Browse files
committed
document now method
1 parent 60b7d20 commit 30fecbb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

session.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,14 +181,16 @@ Sometimes you may wish to store items in the session for the next request. You m
181181

182182
$request->session()->flash('status', 'Task was successful!');
183183

184-
If you need to persist your flash data for just the current request, you may use the `now` method. If you need to persist your flash data for several requests, you may use the `reflash` method, which will keep all of the flash data for an additional request. If you only need to keep specific flash data, you may use the `keep` method:
184+
If you need to persist your flash data for several requests, you may use the `reflash` method, which will keep all of the flash data for an additional request. If you only need to keep specific flash data, you may use the `keep` method:
185185

186-
$request->session()->now('status', 'Task was successful!');
187-
188186
$request->session()->reflash();
189187

190188
$request->session()->keep(['username', 'email']);
191189

190+
To persist your flash data only for the current request, you may use the `now` method:
191+
192+
$request->session()->now('status', 'Task was successful!');
193+
192194
<a name="deleting-data"></a>
193195
### Deleting Data
194196

0 commit comments

Comments
 (0)