My beer compendium
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.

20 lines
354 B

3 years ago
  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
  10. */
  11. public function hosts()
  12. {
  13. return [
  14. $this->allSubdomainsOfApplicationUrl(),
  15. ];
  16. }
  17. }