text4u
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.

1234567891011121314151617181920
  1. <?php
  2. namespace App\Http\Middleware;
  3. use Illuminate\Http\Middleware\TrustHosts as Middleware;
  4. class TrustHosts extends Middleware
  5. {
  6. /**
  7. * Get the host patterns that should be trusted.
  8. *
  9. * @return array<int, string|null>
  10. */
  11. public function hosts(): array
  12. {
  13. return [
  14. $this->allSubdomainsOfApplicationUrl(),
  15. ];
  16. }
  17. }