jonnybarnes.uk/app/Http/Middleware/TrustHosts.php

24 lines
385 B
PHP
Raw Normal View History

2020-10-19 19:41:50 +01:00
<?php
namespace App\Http\Middleware;
use Illuminate\Http\Middleware\TrustHosts as Middleware;
2022-05-14 17:44:14 +01:00
/**
* @codeCoverageIgnore
*/
2020-10-19 19:41:50 +01:00
class TrustHosts extends Middleware
{
/**
* Get the host patterns that should be trusted.
*
* @return array
*/
public function hosts()
{
return [
$this->allSubdomainsOfApplicationUrl(),
];
}
}