InteractsWithSession

trait InteractsWithSession (View source)

Methods

$this withSession(array $data)

Set the session to the given array.

$this session(array $data)

Set the session to the given array.

$this startSession()

Start the session for the application.

$this flushSession()

Flush all of the current session data.

Details

$this withSession(array $data)

Set the session to the given array.

Parameters

array $data

Return Value

$this

$this session(array $data)

Set the session to the given array.

Parameters

array $data

Return Value

$this

protected $this startSession()

Start the session for the application.

Return Value

$this

$this flushSession()

Flush all of the current session data.

Return Value

$this

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Foundation/Testing/Concerns/InteractsWithSession.html