Controller
flashKeep()
Signature
Section titled “Signature”flashKeep() — returns void
Available in: controller
Category: Flash Functions
Description
Section titled “Description”Make the entire Flash or specific key in it stick around for one more request.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
key | string | no | — |
Examples
Section titled “Examples”// Keep the entire Flash for the next request
flashKeep();
// Keep the "error" key in the Flash for the next request
flashKeep("error");
// Keep both the "error" and "success" keys in the Flash for the next request
flashKeep("error,success");