Helps you set a master password in .env file and login into any account with that, to impersonate your users.
This means that each account will have 2 valid passwords. The original one and the master password.
composer require imanghafoori/laravel-masterpass
Then optionally:
php artisan vendor:publish --tag=master_password
The only thing you should do is to put your master password in the .env
(or config/master_password.php
) file:
MASTER_PASSWORD=mySecretMasterPass
Or you can put the hashed version of the password here to hide it from stealing eyes. 👀
MASTER_PASSWORD=$2y$10$vMAcHBzLck9YDWjEwBN9pelWg5RgZfjwoayqggmy41eeqTLGq59gS
both of the options will work just fine.
- If
MASTER_PASSWORD
is not present in.env
(orconfig/master_password.php
) file, this package will be totally disabled and will do nothing.
- Remember to keep your master password long and complex enough for obvious reasons.
If you discover any security related issues, please email imanghafoori1@gmail.com instead of using the issue tracker.
As always if you found this package useful and you want to encourage us to maintain and work on it, Please press the star button to declare your willing.
💎 A minimal yet powerful package to give you opportunity to refactor your controllers.
💎 A minimal yet powerful package to give a better structure and caching opportunity for your laravel apps.
💎 It allows you login with any password in local environment only.