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;
|
||
|
});
|
||
|
}
|
||
|
}
|