Download the PHP package xlite-dev/filament-impersonate without Composer
On this page you can find all versions of the php package xlite-dev/filament-impersonate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download xlite-dev/filament-impersonate
More information about xlite-dev/filament-impersonate
Files in xlite-dev/filament-impersonate
Package filament-impersonate
Short Description Switch between accounts in Filament: impersonate users, linked sub-accounts with password-confirmed escalation, and one-click developer logins.
License MIT
Homepage https://github.com/packstub/filament-account-switcher
Informations about the package filament-impersonate
Filament Account Switcher
Switch between accounts in a Filament panel without signing out — safely, in production.
Features
- Linked accounts — work from a low-privilege account day to day and switch to your full admin account only when you need it. Switching up asks for that account's password; switching down is one click.
- Impersonation — an
ImpersonateActionfor your user resource, a persistent banner with a Switch back button, and authorization hooks on your model. - Developer logins — one-click sign-in buttons on the login page for the accounts you seed locally, never rendered outside the environments you allow.
- Audit trail — every switch is recorded (who, to whom, why, panel, IP, user agent) and fires
AccountSwitching/AccountSwitchedevents. - Fluent plugin API — enable each feature per panel, add your own authorization rules, move the banner, replace the Linked accounts page.
- Dark mode ready and translatable — built from Filament components, with every string in a language file.
Formerly xlite-dev/filament-impersonate — see the upgrade guide.
Compatibility
| Plugin | Filament | Laravel | PHP |
|---|---|---|---|
| 4.x | 4.x, 5.x | 12.x, 13.x | 8.2+ |
3.x (xlite-dev/filament-impersonate) |
4.x, 5.x | 9.x – 12.x | 8.1+ |
Installation
Add the trait to your user model and the plugin to your panel:
Full walkthrough: Installation.
Linked accounts
Link the accounts one person owns. A Switch to menu next to the user menu lists them with their label and e-mail.

Switching down to a lower-privilege account is one click. Switching up asks for the target account's password, so a compromised daily session can never reach the admin account on its own.

The Linked accounts page (in the user menu) links an existing account, creates a sub-account, renames links and sets the per-link password rule.

Read more: Linked accounts · Security model.
Impersonation
Drop ImpersonateAction into your users table or a page header. It is hidden for records the current user may not impersonate, based on canImpersonate() / canBeImpersonated() on your model.

While impersonating, a banner stays visible on every page with a Switch back button.

Read more: Impersonation.
Developer logins
One-click sign-in for the accounts you seed, shown under the login form. They only render in the environments listed in the config (local by default), whatever the panel says.

Read more: Developer logins.
Configuration
Read more: Configuration — the config file, events, the switch log and the AccountSwitcher facade.
Documentation
The same pages live in the docs/ directory of this repository.
Testing
Changelog
See the changelog.
Security vulnerabilities
Please e-mail [email protected] rather than opening a public issue.
Credits
License
MIT. See the license file.
All versions of filament-impersonate with dependencies
filament/filament Version ^4.0 || ^5.0
illuminate/contracts Version ^12.0 || ^13.0
spatie/laravel-package-tools Version ^1.92