Skip to content

Commit

Permalink
Upgraded to Laravel 9
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinByrne committed May 19, 2022
1 parent 503f6db commit c9277f5
Show file tree
Hide file tree
Showing 4 changed files with 2,348 additions and 1,849 deletions.
9 changes: 7 additions & 2 deletions app/Http/Middleware/TrustProxies.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace App\Http\Middleware;

use Fideloper\Proxy\TrustProxies as Middleware;
use Illuminate\Http\Middleware\TrustProxies as Middleware;
use Illuminate\Http\Request;

class TrustProxies extends Middleware
Expand All @@ -19,5 +19,10 @@ class TrustProxies extends Middleware
*
* @var int
*/
protected $headers = Request::HEADER_X_FORWARDED_ALL;
protected $headers =
Request::HEADER_X_FORWARDED_FOR |
Request::HEADER_X_FORWARDED_HOST |
Request::HEADER_X_FORWARDED_PORT |
Request::HEADER_X_FORWARDED_PROTO |
Request::HEADER_X_FORWARDED_AWS_ELB;
}
13 changes: 6 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,27 @@
"require": {
"php": "^7.3|^8.0",
"doctrine/dbal": "^3.1",
"fideloper/proxy": "^4.2",
"fruitcake/laravel-cors": "^2.0",
"garygreen/pretty-routes": "^1.0",
"google/recaptcha": "^1.2",
"guzzlehttp/guzzle": "^7.2",
"laravel/fortify": "^1.7",
"laravel/framework": "^8.0",
"laravel/framework": "^9.0",
"laravel/tinker": "^2.0",
"livewire/livewire": "^2.3",
"mehradsadeghi/laravel-filter-querystring": "^1.1",
"rappasoft/laravel-patches": "^1.0",
"rappasoft/laravel-patches": "^2.0",
"spatie/laravel-medialibrary": "^9.0.0",
"spatie/laravel-permission": "^4.0",
"symfony/process": "^5.3"
"spatie/laravel-permission": "^5.0",
"symfony/process": "^6.0"
},
"require-dev": {
"barryvdh/laravel-debugbar": "^3.5",
"beyondcode/laravel-query-detector": "^1.4",
"facade/ignition": "^2.3.6",
"spatie/laravel-ignition": "^1.0",
"fakerphp/faker": "^1.12",
"mockery/mockery": "^1.3.1",
"nunomaduro/collision": "^5.0",
"nunomaduro/collision": "^6.1",
"phpunit/phpunit": "^9.3"
},
"config": {
Expand Down
Loading

0 comments on commit c9277f5

Please sign in to comment.