I suggest following the laravel upgrade guide from the documentation.
Jun 11, 2023
2
Level 1
Upgrade from v9 to v10 error with \App\Http\Middleware\TrustProxies::class,
Hi a bit of an odd one, if I create a new Laravel app v10 I can see \App\Http\Middleware\TrustProxies::class, despite fideloper/proxy not being in the composer file.
When I try to upgrade an app from 9 to 10 if I remove fideloper/proxy from my composer file I get class TrustProxies not found so the app doesn't load?
How is the middleware working in a fresh install but not when upgrading, I followed this upgrade guide https://blog.devgenius.io/how-to-upgrade-from-laravel-9-x-to-laravel-10-x-926b826b454f
Please or to participate in this conversation.