From b12c679b4ade728da7ad6104e1c4fd60e00fe4bc Mon Sep 17 00:00:00 2001 From: Bert Wijnhoven Date: Tue, 25 Jun 2024 10:16:54 +0200 Subject: [PATCH] add currentDomain in route loop --- routes/web.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/routes/web.php b/routes/web.php index be10e72..f279fe9 100644 --- a/routes/web.php +++ b/routes/web.php @@ -16,6 +16,8 @@ $domains = $panel->getDomains(); foreach ((empty($domains) ? [null] : $domains) as $domain) { + Filament::currentDomain($domain); + Route::domain($domain) ->middleware($panel->getMiddleware()) ->name("socialite.{$panel->generateRouteName('oauth.redirect')}") @@ -28,6 +30,8 @@ ...config('filament-socialite.middleware'), ]) ->name("socialite.{$panel->generateRouteName('oauth.callback')}"); + + Filament::currentDomain(null); } }