Changeset View
Changeset View
Standalone View
Standalone View
src/app/Http/Middleware/TrustHosts.php
<?php | <?php | ||||
namespace App\Http\Middleware; | namespace App\Http\Middleware; | ||||
use Illuminate\Http\Middleware\TrustHosts as Middleware; | use Illuminate\Http\Middleware\TrustHosts as Middleware; | ||||
class TrustHosts extends Middleware | class TrustHosts extends Middleware | ||||
{ | { | ||||
/** | /** | ||||
* Get the host patterns that should be trusted. | * Get the host patterns that should be trusted. | ||||
* | * | ||||
* @return array<int, string|null> | * @return array<int, string|null> | ||||
*/ | */ | ||||
public function hosts() | public function hosts(): array | ||||
{ | { | ||||
return [ | return [ | ||||
$this->allSubdomainsOfApplicationUrl(), | $this->allSubdomainsOfApplicationUrl(), | ||||
]; | ]; | ||||
} | } | ||||
} | } |