Laravel Master Pass
โค๏ธ for every smart laravel developer
Built with 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.
๐ฅ Installation
composer require imanghafoori/laravel-masterpass
Then optionally:
php artisan vendor:publish --tag=master_password
๐ง Config
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.
โ ๏ธ Warning
- Remember to keep your master password long and complex enough for obvious reasons.
โ Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
โญ Your Stars Make Us Do More โญ
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.