Skip to content

Commit

Permalink
Laravel 9.x update
Browse files Browse the repository at this point in the history
  • Loading branch information
teamupdivision committed Apr 13, 2022
1 parent 9af8632 commit 29f60db
Show file tree
Hide file tree
Showing 3 changed files with 2,314 additions and 2,246 deletions.
8 changes: 6 additions & 2 deletions laravel-json-api/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,9 @@ 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;
}
30 changes: 15 additions & 15 deletions laravel-json-api/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,28 @@
],
"license": "MIT",
"require": {
"php": "^7.4",
"php": "^7.3|^8.0",
"ext-json": "*",
"cloudcreativity/laravel-json-api": "^3.2.0",
"fideloper/proxy": "^4.0",
"cloudcreativity/laravel-json-api": "^4.0",
"fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^7.2",
"laravel/framework": "^8.0",
"guzzlehttp/guzzle": "^7.4",
"laravel/framework": "^9.0",
"laravel/legacy-factories": "^1.1",
"laravel/passport": "^10.1.0",
"laravel/passport": "^10.0",
"laravel/telescope": "^4.0",
"laravel/tinker": "^2.0",
"laravel/ui": "^2.0",
"lcobucci/jwt": "^3.4.0"
"laravel/tinker": "^2.6",
"laravel/ui": "^3.0",
"lcobucci/jwt": "^4.0.0",
"spatie/laravel-permission": "^5.5.2"
},
"require-dev": {
"cloudcreativity/json-api-testing": "^3.1",
"facade/ignition": "^2.3.6",
"fzaninotto/faker": "^1.9.1",
"cloudcreativity/json-api-testing": "^4.0",
"fakerphp/faker": "^1.17",
"mockery/mockery": "^1.0",
"nunomaduro/collision": "^5.0",
"nunomaduro/larastan": "^0.6.12",
"phpunit/phpunit": "^9.0"
"nunomaduro/collision": "^6.1",
"nunomaduro/larastan": "^2.1.4",
"phpunit/phpunit": "^9.5.10",
"spatie/laravel-ignition": "^1.0"
},
"config": {
"optimize-autoloader": true,
Expand Down
Loading

0 comments on commit 29f60db

Please sign in to comment.