Last active
September 23, 2016 02:10
-
-
Save Sarav-S/4511188ef6bcb3c32a4bcb9cc2805a1e to your computer and use it in GitHub Desktop.
HashServiceProvider registers the hash key
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Register the service provider. | |
* | |
* @return void | |
*/ | |
public function register() | |
{ | |
$this->app->singleton('hash', function () { | |
return new BcryptHasher; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment