TrustHosts.php 308 B

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