ldc-bogt/app/Http/Middleware/TrustHosts.php

22 lines
411 B
PHP
Raw Permalink Normal View History

2022-06-08 11:57:37 +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.
*
* @return array<int, string|null>
*/
public function hosts()
{
return [
2022-12-07 14:30:11 +01:00
\config('app.egg_domain'),
2022-06-08 11:57:37 +02:00
$this->allSubdomainsOfApplicationUrl(),
];
}
}