Files
RomhackPlaza/app/Providers/AppServiceProvider.php
2026-05-20 18:25:15 +02:00

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