28 lines
553 B
PHP
Executable file
28 lines
553 B
PHP
Executable file
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Auth\HashEmailUserProvider;
|
|
use Illuminate\Support\Facades\Auth;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register any application services.
|
|
*/
|
|
public function register(): void
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Bootstrap any application services.
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
Auth::provider('hash_email', function ($app, array $config) {
|
|
return new HashEmailUserProvider();
|
|
});
|
|
}
|
|
}
|