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

at line line 16
$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

at line line 30
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