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

21 lines
379 B
PHP
Raw Permalink Normal View History

2023-11-13 11:56:06 +01: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>
*/
2024-03-20 17:39:24 +01:00
public function hosts(): array
2023-11-13 11:56:06 +01:00
{
return [
$this->allSubdomainsOfApplicationUrl(),
];
}
}