Skip to content

Commit

Permalink
proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiio committed Nov 21, 2024
1 parent 3a9efe3 commit 1b98691
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
health: '/up',
)
->withMiddleware(function (Middleware $middleware) {
$middleware->trustProxies('*');

// Fix for `Route [login] not defined` exception
// @see https://github.com/filamentphp/filament/discussions/5226#discussioncomment-10555366
$middleware->redirectGuestsTo(fn () => Filament::getCurrentPanel()?->getLoginUrl() ?? route('front.index'));
Expand Down

0 comments on commit 1b98691

Please sign in to comment.