You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Authenticate.php 396B

1234567891011121314151617
  1. <?php
  2. namespace App\Http\Middleware;
  3. use Filament\Facades\Filament;
  4. use Filament\Http\Middleware\Authenticate as Middleware;
  5. class Authenticate extends Middleware
  6. {
  7. /**
  8. * Get the path the user should be redirected to when they are not authenticated.
  9. */
  10. protected function redirectTo($request): ?string
  11. {
  12. return Filament::getDefaultPanel()->getLoginUrl();
  13. }
  14. }