trait ImpersonatesUsers (View source)
$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. |
Set the currently logged in user for the application.
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