From 4dd7ed672634d659bf0c5dfe0ca6b928f09d3ab9 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Sun, 29 Jan 2023 19:32:19 +0100 Subject: [PATCH] Remove app/Http/Middleware/TrustProxies.php as we don't need to subclass it. --- app/Http/Kernel.php | 2 +- app/Http/Middleware/TrustProxies.php | 28 ---------------------------- 2 files changed, 1 insertion(+), 29 deletions(-) delete mode 100644 app/Http/Middleware/TrustProxies.php diff --git a/app/Http/Kernel.php b/app/Http/Kernel.php index 45f9b58..b702cbb 100644 --- a/app/Http/Kernel.php +++ b/app/Http/Kernel.php @@ -15,7 +15,7 @@ class Kernel extends HttpKernel */ protected $middleware = [ \Illuminate\Session\Middleware\StartSession::class, - \App\Http\Middleware\TrustProxies::class, + \Illuminate\Http\Middleware\TrustProxies::class, \Fruitcake\Cors\HandleCors::class, \Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance::class, \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class, diff --git a/app/Http/Middleware/TrustProxies.php b/app/Http/Middleware/TrustProxies.php deleted file mode 100644 index 0c7d3b6..0000000 --- a/app/Http/Middleware/TrustProxies.php +++ /dev/null @@ -1,28 +0,0 @@ -