Download the PHP package pinetco-dev/laravel-impersonate without Composer
On this page you can find all versions of the php package pinetco-dev/laravel-impersonate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pinetco-dev/laravel-impersonate
More information about pinetco-dev/laravel-impersonate
Files in pinetco-dev/laravel-impersonate
Package laravel-impersonate
Short Description Laravel Impersonate - A package that allows for easy and secure user impersonation within a Laravel application.
License MIT
Homepage https://github.com/pinetco-dev/laravel-impersonate
Informations about the package laravel-impersonate
Laravel Impersonate
Laravel Impersonate is a package that allows you to easily and securely impersonate other users within a Laravel application. This can be particularly useful for debugging problems and generating scenarios after deploying your application to production.
Installation
You can install the package via composer:
Once you have installed the package, you can publish and run the migrations with the following command:
Usage
The package comes with a configuration file that allows you to customize its settings according to your needs. You can publish the configuration file using the following command:
After publishing the configuration file, you need to specify the URL where impersonate webhooks should hit your application. To do this, add the following line to your routes file:
Middleware
If you want to protect specific pages against user impersonation, you can use the impersonate.protect middleware. For example:
Blade
There are some blade directives available that allow you to customize the behavior of your application depending on whether the user can impersonate or is being impersonated.
When the user can impersonate
When the user is being impersonated
Testing
You can run the tests using the following command:
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Pooja Jadav
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-impersonate with dependencies
spatie/laravel-package-tools Version ^1.13.0
illuminate/contracts Version >=9.0