Moved force https logic to a middleware; Changed default for config session.secure

This commit is contained in:
Constantin Graf
2025-02-07 22:39:33 -05:00
committed by Constantin Graf
parent adf0d35c11
commit d924fa74ec
14 changed files with 148 additions and 33 deletions

View File

@@ -1,22 +0,0 @@
<?php
declare(strict_types=1);
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(),
];
}
}