Adding trustProxies in Laravel 12
You can configure the trustProxies middleware like this in the file. https://laravel-news.com/managing-proxy-trust-in-laravel-applications You can also do it as
GGAMI
->withMiddleware(function (Middleware $middleware) {
$middleware->trustProxies(at: [