trait InteractsWithFlashData (View source)

Methods

string|array
old(string|null $key = null, 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 old(string|null $key = null, string|array|null $default = null)

Retrieve an old input item.

Parameters

string|null $key
string|array|null $default

Return Value

string|array

void flash()

Flash the input for the current request to the session.

Return Value

void

void flashOnly(array|mixed $keys)

Flash only some of the input to the session.

Parameters

array|mixed $keys

Return Value

void

void flashExcept(array|mixed $keys)

Flash only some of the input to the session.

Parameters

array|mixed $keys

Return Value

void

void flush()

Flush all of the old input from the session.

Return Value

void