As v5 is completely broken in my opinion (I’ve created a different thread for that a while ago) I am staying on v4. There was an update released in the last few days that broke v4. The issue is, that setTrustedProxies() required 2 arguments, there is just a single one passed though. I fixed it by changing app/Http/Middleware/StartupCheck.php on line 41:
if (isset($_ENV['TRUSTED_PROXIES'])) {
if (env('TRUSTED_PROXIES') == '*') {
$request->setTrustedProxies(['127.0.0.1', $request->server->get('REMOTE_ADDR')], \Illuminate\Http\Request::HEADER_X_FORWARDED_ALL);
} else{
$request->setTrustedProxies(array_map('trim', explode(',', env('TRUSTED_PROXIES'))), \Illuminate\Http\Request::HEADER_X_FORWARDED_ALL);
}
}
Please don’t break v4 now aswell, then I would have to stop updating and that’s usually not a good idea…