Skip to content

Instantly share code, notes, and snippets.

@Sarav-S
Last active September 23, 2016 02:10
Show Gist options
  • Save Sarav-S/4511188ef6bcb3c32a4bcb9cc2805a1e to your computer and use it in GitHub Desktop.
Save Sarav-S/4511188ef6bcb3c32a4bcb9cc2805a1e to your computer and use it in GitHub Desktop.
HashServiceProvider registers the hash key
<?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