Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Impersonate Laravel Package

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.

View on GitHub
Deep Wiki
Context7
1.7.8

1.7.8

1.7.7

1.7.7

1.7.6

1.7.6

1.7.5

Laravel 11.x support, thanks to erikn69

1.7.4

1.7.4

1.7.3

1.7.3

  • Laravel 9.x support (thanks to [freekmurze](Freek Van der Herten), #149)
1.7.2

1.7.2

Added

Fixed

  • getImpersonator() when working with multiple guards (thanks to carsso, #120)
  • Can't leave impersonation when multi-guard is used (thanks to ctf0, #116)

Changed

  • Allow guard name in blade directives (thanks to ctf0, #115)
  • Documentation about multi-guard usage (thanks to ctf0, #117)

Removed

  • composer.lock
1.7.1

1.7.1

Added

  • Laravel 8.x support
1.7.0

1.7.0

Added

  • ImpersonateManager@findUserById will now throw a MissingUserProvider exception when guard has no user provider baa722b
  • ImpersonateManager@findUserById will now throw a InvalidUserProvider exception when guard has an invalid user provider baa722b

Changed

  • Helper can_be_impersonated now use model getAuthIdentifier() instead of hardcoded id column #105
  • Git attributes #108
1.6.0

1.6.0

Added

  • Laravel 7.x support

Removed

  • Laravel 5.x support
1.5.1

1.5.1

Changed

  • Use Illuminate\Contracts\Auth\Authenticatable@getAuthIdentifier instead of Illuminate\Database\Eloquent\Model@getKey #96
  • PHPDoc updated
1.5.0

1.5.0

Changed

  • Events uses Illuminate\Contracts\Auth\Authenticatable instead of Illuminate\Database\Eloquent\Model #92
  • PHPDoc and return values for ImpersonateManager

Fixed

1.4.3

1.4.3

Fixed

  • can_impersonate() helper
  • Tests for Blade directives
1.2.0

1.2.0 (2017-07-28)

Added

  • Laravel 5.5 compatibility
  • Package auto-discovery
1.2.1

1.2.1 (2017-09-03)

Changed

  • PHP version requirement
  • Laravel version requirement
1.2.2

1.2.2 (2018-01-19)

Changed

  • Register Blade directives after resolving

Fixed

  • Blade directives documentation
1.2.3

1.2.3 (2018-09-03)

Changed

  • Documentation
  • Use getSessionKey() in take() method
1.3.0

1.3.0 (2019-02-28)

Changed

  • Laravel 5.8 compatibility (min version)
1.4.0

1.4.0

Added

  • Allows impersonation through multiple guards (Pull 58)
  • Added the public method getImpersonator to ImpersonateManager (Pull 69)
1.4.1

1.4.1

Fixed

  • Laravel 6.0 dependencies compatibility
  • dump() in ImpersonateManager.php
1.4.2

1.4.2

Added

  • is_impersonating(), can_impersonate() and can_be_impersonated() helpers

Changed

  • Blade directives now use helpers
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope
anil/file-picker
broqit/fields-ai