10000 updgrade laravel 8 to laravel 10 · JAVI-CC/Laravel-API-Server@4aa9afc · GitHub
[go: up one dir, main page]

Skip to content

Commit 4aa9afc

Browse files
committed
updgrade laravel 8 to laravel 10
1 parent 2d95011 commit 4aa9afc

File tree

5 files changed

+3112
-2054
lines changed

5 files changed

+3112
-2054
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<a href="https://packagist.org/packages/laravel/framework"><img src="https://poser.pugx.org/laravel/framework/license.svg" alt="License"></a>
88
</p>
99

10-
<span>Application made with Laravel 8 that consists of the creation of a CRUD of a games api that contains the following functionalities:</span>
10+
<span>Application made with Laravel 10 that consists of the creation of a CRUD of a games api that contains the following functionalities:</span>
1111
<ul>
1212
<li>Relationships between different models with polymorphic tables.</li>
1313
<li>Contains endpoints of type GET, POST, PUT and DELETE</li>

app/Http/Middleware/TrustProxies.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace App\Http\Middleware;
44

5-
use Fideloper\Proxy\TrustProxies as Middleware;
5+
use Illuminate\Http\Middleware\TrustProxies as Middleware;
66
use Illuminate\Http\Request;
77

88
class TrustProxies extends Middleware
@@ -19,5 +19,10 @@ class TrustProxies extends Middleware
1919
*
2020
* @var int
2121
*/
22-
protected $headers = Request::HEADER_X_FORWARDED_ALL;
22+
protected $headers =
23+
Request::HEADER_X_FORWARDED_FOR |
24+
Request::HEADER_X_FORWARDED_HOST |
25+
Request::HEADER_X_FORWARDED_PORT |
26+
Request::HEADER_X_FORWARDED_PROTO |
27+
Request::HEADER_X_FORWARDED_AWS_ELB;
2328
}

composer.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,20 @@
88
],
99
"license": "MIT",
1010
"require": {
11-
"php": "^8.0.6",
11+
"php": "^8.2",
1212
"crazybooot/base64-validation": "^1.0",
1313
"darkaonline/l5-swagger": "^8.0",
14-
"fideloper/proxy": "^4.0",
1514
"guzzlehttp/guzzle": "^7.0.1",
16-
"laravel/framework": "^8.0",
17-
"laravel/sanctum": "^2.10",
15+
"laravel/framework": "^10.0",
16+
"laravel/sanctum": "^3.2",
1817
"laravel/tinker": "^2.0"
1918
},
2019
"require-dev": {
21-
"facade/ignition": "^2.3.6",
20+
"spatie/laravel-ignition": "^2.0",
2221
"fzaninotto/faker": "^1.9.1",
2322
"mockery/mockery": "^1.0",
24-
"nunomaduro/collision": "^5.0",
25-
"phpunit/phpunit": "^9.0"
23+
"nunomaduro/collision": "^7.0",
24+
"phpunit/phpunit": "^10.0"
2625
},
2726
"config": {
2827
"optimize-autoloader": true,

0 commit comments

Comments
 (0)
0