On this page
InteractsWithFlashData
trait InteractsWithFlashData (View source)
Methods
string|array|null | old(string|null $key = null, Model|string|array|null $default = null) Retrieve an old input item. |
|
void | flash() Flash the input for the current request to the session. |
|
void | flashOnly(array|mixed $keys) Flash only some of the input to the session. |
|
void | flashExcept(array|mixed $keys) Flash only some of the input to the session. |
|
void | flush() Flush all of the old input from the session. |
Details
string|array|null old(string|null $key = null, Model|string|array|null $default = null)
Retrieve an old input item.
void flash()
Flash the input for the current request to the session.
void flashOnly(array|mixed $keys)
Flash only some of the input to the session.
void flashExcept(array|mixed $keys)
Flash only some of the input to the session.
void flush()
Flush all of the old input from the session.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/10.x/Illuminate/Http/Concerns/InteractsWithFlashData.html