You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
356 B
16 lines
356 B
3 years ago
|
<?php
|
||
|
namespace App\Providers;
|
||
|
|
||
|
use Illuminate\Hashing\HashServiceProvider;
|
||
|
use App\Libs\CustomHash\CustomHasher as CustomHasher;
|
||
|
|
||
|
class CustomHashServiceProvider extends HashServiceProvider
|
||
|
{
|
||
|
public function register()
|
||
|
{
|
||
|
$this->app->singleton('hash', function () {
|
||
|
return new CustomHasher;
|
||
|
});
|
||
|
}
|
||
|
}
|