dev-master
9999999-devFlexible impersonating laravel package.
The Requires
- php >=7.0.0
- illuminate/support >=5.0
by Mohamed Miloudi
Flexible impersonating laravel package.
Flexible impersonating Laravel package., (*1)
first of all pull the package through Composer., (*2)
composer require devmi/impersonate
Next, if you're using older Laravel version than 5.5, include the service provider within your config/app.php
file.
(otherwise ignore this step), (*3)
'providers' => [ Devmi\Impersonate\ImpersonateServiceProvider::class, ];
Add the middleware to App\Http\Middleware\Kernel.php
, (*4)
protected $middlewareGroups = [ ... \Devmi\Impersonate\Middleware\Impersonate::class, ]
Public the configuration so you can custom this package depending on your needs., (*5)
php artisan vendor:publich --tag=impersonate
The file generated would be found under config/impersonate.php
, (*6)
You can visit http://your-domain/admin/impersonate
., (*7)
Enter the user email address you want to impersonate and you're done., (*8)
@impersonating
blade directive is already provided so you can displaystop impersonating
button to quit the impersonation., (*9)Hit
route('impersonate.destroy')
to destroy your impersonation session., (*10)
That's it., (*11)
PR's are very welcome, Thanks., (*12)
Flexible impersonating laravel package.