Learn how to impersonate other users in your application.
Laravel\Nova\Auth\Impersonatable
trait to your application’s User
model:
Impersonatable
trait has been added to your application’s User
model, an “Impersonate” action will be available via the inline action menu for the corresponding resource:
canImpersonate
and canBeImpersonated
methods on your application’s Impersonatable
model:
Laravel\Nova\Contracts\ImpersonatesUsers
interface via Laravel’s service container, you can inspect the current impersonation state of the application:
Laravel\Nova\Events\StartedImpersonating
Laravel\Nova\Events\StoppedImpersonating
boot
method of your application’s AppServiceProvider
or EventServiceProvider
: