старая структура laravel, упоминается в Kernel, может по умолчанию шифровать все куки

This commit is contained in:
vasya
2026-03-22 20:13:29 +03:00
parent b7271e348a
commit 77eadf29ac
3 changed files with 67 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
<?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(): array
{
return [
$this->allSubdomainsOfApplicationUrl(),
];
}
}