trait InteractsWithSession (View source)

Methods

$this
withSession( array $data)

Set the session to the given array.

void
session( array $data)

Set the session to the given array.

void
flushSession()

Flush all of the current session data.

void
seeInSession( string|array $key, mixed $value = null)

Assert that the session has a given value.

void
assertSessionHas( string|array $key, mixed $value = null)

Assert that the session has a given value.

void
assertSessionHasAll( array $bindings)

Assert that the session has a given list of values.

void
assertSessionMissing( string|array $key)

Assert that the session does not have a given key.

void
assertSessionHasErrors( string|array $bindings = array(), mixed $format = null)

Assert that the session has errors bound.

void
assertHasOldInput()

Assert that the session has old input.

Details

at line line 15
$this withSession( array $data)

Set the session to the given array.

Parameters

array $data

Return Value

$this

at line line 28
void session( array $data)

Set the session to the given array.

Parameters

array $data

Return Value

void

at line line 54
void flushSession()

Flush all of the current session data.

Return Value

void

at line line 68
void seeInSession( string|array $key, mixed $value = null)

Assert that the session has a given value.

Parameters

string|array $key
mixed $value

Return Value

void

at line line 82
void assertSessionHas( string|array $key, mixed $value = null)

Assert that the session has a given value.

Parameters

string|array $key
mixed $value

Return Value

void

at line line 101
void assertSessionHasAll( array $bindings)

Assert that the session has a given list of values.

Parameters

array $bindings

Return Value

void

at line line 118
void assertSessionMissing( string|array $key)

Assert that the session does not have a given key.

Parameters

string|array $key

Return Value

void

at line line 136
void assertSessionHasErrors( string|array $bindings = array(), mixed $format = null)

Assert that the session has errors bound.

Parameters

string|array $bindings
mixed $format

Return Value

void

at line line 158
void assertHasOldInput()

Assert that the session has old input.

Return Value

void