diff --git a/routes/web.php b/routes/web.php index 071e1da..d8f3266 100644 --- a/routes/web.php +++ b/routes/web.php @@ -15,10 +15,12 @@ ->name("{$panelId}.") ->prefix($panel->getPath()) ->group(function () use ($panel, $hasTenancy) { - $route = $hasTenancy ? '/{tenant}/two-factor-authentication' : '/two-factor-authentication'; - $action = filament('filament-breezy')->getTwoFactorRouteAction(); + if ($panel->hasPlugin('filament-breezy')) { + $route = $hasTenancy ? '/{tenant}/two-factor-authentication' : '/two-factor-authentication'; + $action = filament('filament-breezy')->getTwoFactorRouteAction(); - Route::get($route, $action)->name('auth.two-factor'); + Route::get($route, $action)->name('auth.two-factor'); + } }); } }