Impersonate other users to assist in resolving issues
matthewbdaly/laravel-impersonator is a Laravel package for impersonate other users to assist in resolving issues.
It currently has 0 GitHub stars and 16 downloads on Packagist (latest version 0.0.1).
Install it with composer require matthewbdaly/laravel-impersonator.
Discover more Laravel packages by matthewbdaly
or browse all Laravel packages to compare alternatives.
Last updated
Impersonate other users to assist in resolving issues
Run the following command to install the package:
composer require matthewbdaly/laravel-impersonator
Then just include this in your app/Http/Kernel.php in the appropriate place where you want to import the middleware:
\Matthewbdaly\LaravelImpersonator\Http\Middleware\Impersonator::class
You can apply it globally, or only to specific routes as you wish. You will also need to add the trait Matthewbdaly\LaravelImpersonator\Eloquent\Traits\CanImpersonate to your user model to add these methods:
startImpersonating($id) - start impersonating user $idstopImpersonating() - stop impersonatingisImpersonating() - Is user impersonating or not?