Laravel
Skip to main content

Impersonation

← Back to Help

Impersonation

Impersonation lets a privileged admin act as another user for support. The session becomes the target user for the duration; leaving impersonation restores the original admin session.

Safety and policy

  • Only users who pass UserPolicy::impersonate (and related gates) may take impersonation.
  • Optional redirect on take is allowlisted (for example to /driver with specific query keys) so support lands in context safely.

Admin shell while impersonating

If you impersonate someone without admin portal access, /admin routes show a friendly message instead of a raw forbidden error.

Preview versus impersonation

Admin preview as driver keeps your admin session and only changes viewer context for the driver dashboard. Use preview when you do not need full account behavior.

Related topics