TrustHosts.php 372 B

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()
  12. {
  13. return [
  14. $this->allSubdomainsOfApplicationUrl(),
  15. ];
  16. }
  17. }