Lae/app/Http/Middleware/TrustHosts.php

21 lines
379 B
PHP
Raw Normal View History

2022-11-06 11:28:22 +00:00
<?php
namespace App\Http\Middleware;
use Illuminate\Http\Middleware\TrustHosts as Middleware;
class TrustHosts extends Middleware
{
/**
* Get the host patterns that should be trusted.
*
* @return array<int, string|null>
*/
2023-01-10 13:42:27 +00:00
public function hosts(): array
2022-11-06 11:28:22 +00:00
{
return [
$this->allSubdomainsOfApplicationUrl(),
];
}
}