Mcrypt Hasher For Laravel Auth
This package will replace Laravel's default hash service provider.
composer require brokerexchange/mcrypthasher
- Add MCRYPT_KEY to your .env file
MCRYPT_KEY='My awesome hash key'
- If you are using Laravel 5.5+, this package will be auto-discovered. Otherwise, add
ElasticQueue\ElasticQueueServiceProvider::class,
to config/app.php
Once installed the mcrypt hasher will automatically be used during authentication and registration. You may also resolve the hasher out of the service container as you normally would. app'('hash')->make($string)