getClientIp() * always gets the originating client IP, no matter * how many proxies that client's request has * subsequently passed through. */ 'proxies' => (function (): string|array { $value = (string) env('TRUSTED_PROXIES', ''); return in_array($value, ['*', '**'], true) ? $value : array_values(array_filter(explode(',', $value))); })(), ];