ImpersonatesUsers
trait ImpersonatesUsers (View source)
Methods
$this | actingAs(Authenticatable $user, string|null $driver = null) Set the currently logged in user for the application. | |
$this | 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.
$this be(Authenticatable $user, string|null $driver = null)
Set the currently logged in user for the application.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.3/Illuminate/Foundation/Testing/Concerns/ImpersonatesUsers.html