29 lines
581 B
PHP
29 lines
581 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Auth\AzerothCoreUserProvider;
|
|
use Illuminate\Support\ServiceProvider;
|
|
use Illuminate\Support\Facades\Auth;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register any application services.
|
|
*/
|
|
public function register(): void
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Bootstrap any application services.
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
Auth::provider('azerothcore', function ($app): AzerothCoreUserProvider {
|
|
return $app->make(AzerothCoreUserProvider::class);
|
|
});
|
|
}
|
|
}
|