lab404/laravel-impersonate
Add secure user impersonation to Laravel: let admins log in as other users for support and debugging, then easily leave impersonation. Includes middleware, routes/helpers, session-based tracking, and simple integration with your User model.
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?