28 lines
516 B
PHP
28 lines
516 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Auth\XenForoGuard;
|
|
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::extend('xenforo', function ($app, $name, array $config) {
|
|
return new XenForoGuard($app['request']);
|
|
});
|
|
}
|
|
}
|