ImpersonatesUsers

trait ImpersonatesUsers (View source)

Methods

$this actingAs(Authenticatable $user, string|null $driver = null)

Set the currently logged in user for the application.

void be(Authenticatable $user, string|null $driver = null)

Set the currently logged in user for the application.

Details

$this actingAs(Authenticatable $user, string|null $driver = null)

Set the currently logged in user for the application.

Parameters

Authenticatable $user
string|null $driver

Return Value

$this

void be(Authenticatable $user, string|null $driver = null)

Set the currently logged in user for the application.

Parameters

Authenticatable $user
string|null $driver

Return Value

void

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