Skip to content

Miscellaneous

flash()

flash() — returns any

Returns the value of a specific key in the Flash (or the entire Flash as a struct if no key is passed in).

NameTypeRequiredDefaultDescription
keystringyesThe key to get the value for.
// Get the current value of notice in the Flash
notice = flash("notice");

// Get the entire Flash as a struct
flashContents = flash();