File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -137,15 +137,15 @@ You can also store small messages that will only be available for the very
137
137
next request::
138
138
139
139
// store a message for the very next request (in a controller)
140
- $session->setFlash ('notice', 'Congratulations, your action succeeded!');
140
+ $session->getFlashBag()->set ('notice', 'Congratulations, your action succeeded!');
141
141
142
142
// display the message back in the next request (in a template)
143
- {{ app.session.flash ('notice') }}
143
+ {{ app.session.flashBag.get ('notice') }}
144
144
145
145
This is useful when you need to set a success message before redirecting
146
- the user to another page (which will then show the message). Please not that
147
- when you use hasFlash or getFlash instead of flash , the flash message will
148
- not be cleared and thus remain visible during following requests.
146
+ the user to another page (which will then show the message). Please note that
147
+ when you use has() instead of get() , the flash message will not be cleared and
148
+ thus remain visible during following requests.
149
149
150
150
Securing Resources
151
151
------------------
You can’t perform that action at this time.
0 commit comments