Download the PHP package nalewis75/laravel-impersonate without Composer
On this page you can find all versions of the php package nalewis75/laravel-impersonate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nalewis75/laravel-impersonate
More information about nalewis75/laravel-impersonate
Files in nalewis75/laravel-impersonate
Package laravel-impersonate
Short Description Login As A Different User Quickly
License MIT
Informations about the package laravel-impersonate
Lara Personate
Is a user impersonate for the laravel framework. allow a developer direct login as another user during development inspired by sudo-su.
Features
- Displays users based their role.
- Limit the number of users displayed.
- Allows searching of the data for a given user.
- Search form using tail.select.
- Auto discovery, no more setting up your ServiceProvider manually.
- Automatic injection via a middleware, no need to add some code to the blade.
Installation
To install the package, simply follow the steps below.
Install the package using Composer:
Authorized Users
You can add a comma seperated list of user emails that are authorized to use Lara Personate.
Set the AUTHORIZED_EMAILS in your .env file.
Lara Personate 1.2.x Upgrade Guide
Since there are many changes in the config and assets files in version 1.2.0, make sure to republish the package.
And that's it!
Configuration
After running vendor:publish
, a config file called impersonate.php
should appear in your project.
Disclaimer - DANGER !
This package can pose a serious security issue if used incorrectly, as anybody will be able to take control of any user's account. Please ensure that the service provider is only registered when the app is in a debug/local environment.
By default, the package will disable itself on any domains that don't have a TLD of .dev or .local. This is a security measure to reduce the risk of accidentally enabling the package in production.
By using this package, you agree that Octopy ID and the contributors of this package cannot be held responsible for any damages caused by using this package.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
To Do
- [ ] Unit tests
- [ ] UI improvement
- [ ] Showing users with their role based on 3rd library like Laratrust, Bouncer and others.
- [x] Laratrust
- [ ] Bouncer
- [ ] Permission
Change Logs
v1.2.2
- Exclude Lara Personate from json response.
v1.2.1
- Exclude Lara Personate from ajax requests.
v1.2.0
- Rewrite code.
- Added sign out button.
- Added a new feature to display users by the role according to third party packages.
v1.1.0
- Add custom fields for user_model.
- Rename package, from laravel-sudo to laravel-impersonate.
v1.0.0
- Initial Release.