lab404/laravel-impersonate
Easily add user impersonation to Laravel apps. Let admins securely “log in as” another user, switch back anytime, and control access with middleware, policies, and guards. Supports multi-auth setups and integrates cleanly with existing authentication.
Laravel 11.x support, thanks to erikn69
Illuminate\Contracts\Auth\Authenticatable@getAuthIdentifier instead of Illuminate\Database\Eloquent\Model@getKey #96Illuminate\Contracts\Auth\Authenticatable instead of Illuminate\Database\Eloquent\Model #92ImpersonateManagersymfony/http-foundation (CVE-2019-18888)can_impersonate() helpergetSessionKey() in take() methodis_impersonating(), can_impersonate() and can_be_impersonated() helpersHow can I help you explore Laravel packages today?