Allow a developer direct login as another user during development inspired by sudo-su.
The reason this library was made is because the sudo-su package has been inactive for the past few years, I see someone who has a problem when there are so many users on the database when using the library.
- Limit the number of users displayed
- 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.
To install the package, simply follow the steps below.
Install the package using Composer:
$ composer require supianidz/laravel-impersonate --dev
$ php artisan vendor:publish
After running vendor:publish
, a config file called sudo.php
should appear in your project.
- Unit Test
- UI Improvement
- Showing user role based on 3rd library like Laratrust, Bouncer and others.
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.