HelloCSE/app/Http/Middleware/TrustHosts.php
2024-04-10 13:56:22 +02:00

20 lignes
372 o
PHP

<?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 [
$this->allSubdomainsOfApplicationUrl(),
];
}
}