InteractsWithSession
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 68
void
seeInSession(
string|array $key,
mixed $value = null)
Assert that the session has a given value.
at line line 82
void
assertSessionHas(
string|array $key,
mixed $value = null)
Assert that the session has a given value.
at line line 101
void
assertSessionHasAll(
array $bindings)
Assert that the session has a given list of values.
at line line 118
void
assertSessionMissing(
string|array $key)
Assert that the session does not have a given key.
at line line 136
void
assertSessionHasErrors(
string|array $bindings = array(),
mixed $format = null)
Assert that the session has errors bound.