Skip to content

Commit

Permalink
Merge pull request #213 from jeffgreco13/2.x-dev
Browse files Browse the repository at this point in the history
Fix composer require error
  • Loading branch information
jeffgreco13 authored Aug 18, 2023
2 parents ab3515c + 667d241 commit ec6702a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
});
}
}
Expand Down

0 comments on commit ec6702a

Please sign in to comment.