User impersonation dependency for Laravel Enso.
- allows a user to impersonate another user, by using a middleware
- permits testing and debugging from the perspective of another user, without needing his credentials
- comes with its own controller and routes that permit starting and stopping the impersonation process
- depends on Permission Manager in order to be able to verify permissions
Run the migrations
php artisan migrate
Impersonatetrait inside your user model - as this will allow the middleware to work correctly
api/core/impersonate/stoproutes to start, respectively stop the impersonation
The access for the impersonation process is determined by the (admin) user's access to the impersonation routes.
The Laravel Enso Core package comes with this package included.