Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
379 B
PHP
Raw Permalink Normal View History

2020-07-09 15:22:50 +02: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.
*
2023-05-24 22:21:54 +02:00
* @return array<int, string|null>
2020-07-09 15:22:50 +02:00
*/
2023-05-24 22:21:54 +02:00
public function hosts(): array
2020-07-09 15:22:50 +02:00
{
return [
$this->allSubdomainsOfApplicationUrl(),
];
}
}