feat: add application kernel and middleware structure; implement console and exception handling kernels

This commit is contained in:
pacnpal
2025-02-27 12:35:34 -05:00
parent 2436e8cec6
commit ea7af68d99
7 changed files with 183 additions and 0 deletions

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(),
];
}
}