trait InteractsWithSession (View source)
$this | withSession(array $data) Set the session to the given array. | |
$this | session(array $data) Set the session to the given array. | |
$this | flushSession() Flush all of the current session data. | |
$this | seeInSession(string|array $key, mixed $value = null) Assert that the session has a given value. | |
$this | assertSessionHas(string|array $key, mixed $value = null) Assert that the session has a given value. | |
$this | assertSessionHasAll(array $bindings) Assert that the session has a given list of values. | |
$this | assertSessionMissing(string|array $key) Assert that the session does not have a given key. | |
$this | assertSessionHasErrors(string|array $bindings = array(), mixed $format = null) Assert that the session has errors bound. | |
$this | assertHasOldInput() Assert that the session has old input. |
Set the session to the given array.
Set the session to the given array.
Flush all of the current session data.
Assert that the session has a given value.
Assert that the session has a given value.
Assert that the session has a given list of values.
Assert that the session does not have a given key.
Assert that the session has errors bound.
Assert that the session has old input.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.3/Illuminate/Foundation/Testing/Concerns/InteractsWithSession.html