Updated to Laravel 10

This commit is contained in:
Julian Prieber 2024-01-30 18:09:30 +01:00
parent f73fde57c2
commit d4a33215b4
2 changed files with 18 additions and 14 deletions

View File

@ -2,7 +2,7 @@
namespace App\Http\Middleware; namespace App\Http\Middleware;
use Fideloper\Proxy\TrustProxies as Middleware; use Illuminate\Http\Middleware\TrustProxies as Middleware;
use Illuminate\Http\Request; use Illuminate\Http\Request;
class TrustProxies extends Middleware class TrustProxies extends Middleware
@ -19,5 +19,10 @@ class TrustProxies extends Middleware
* *
* @var int * @var int
*/ */
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; 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;
} }

View File

@ -5,33 +5,32 @@
"keywords": ["link"], "keywords": ["link"],
"license": "GPL-3.0-or-later", "license": "GPL-3.0-or-later",
"require": { "require": {
"php": ">=8.0", "php": ">=8.1",
"awssat/laravel-visits": "^6.0", "awssat/laravel-visits": "^6.0",
"codedge/laravel-selfupdater": "^3.6", "codedge/laravel-selfupdater": "^3.8.1",
"cohensive/oembed": "^0.17", "cohensive/oembed": "^0.17",
"doctrine/dbal": "^3.0", "doctrine/dbal": "^3.8.0",
"fideloper/proxy": "^4.4", "geo-sot/laravel-env-editor": "^2.1.1",
"geo-sot/laravel-env-editor": "^2.0",
"guzzlehttp/guzzle": "^7.4", "guzzlehttp/guzzle": "^7.4",
"jeroendesloovere/vcard": "^1.7", "jeroendesloovere/vcard": "^1.7",
"laravel/framework": "^9.52.4", "laravel/framework": "^10.42.0",
"laravel/socialite": "^5.5", "laravel/socialite": "^5.5",
"laravel/tinker": "^2.5", "laravel/tinker": "^2.5",
"livewire/livewire": "^2.12", "livewire/livewire": "^2.12",
"rappasoft/laravel-livewire-tables": "^2.15", "rappasoft/laravel-livewire-tables": "^2.15",
"simplesoftwareio/simple-qrcode": "~4", "simplesoftwareio/simple-qrcode": "~4",
"spatie/laravel-backup": "^8.17" "spatie/laravel-backup": "^8.5.1"
}, },
"require-dev": { "require-dev": {
"barryvdh/laravel-ide-helper": "^2.12", "barryvdh/laravel-ide-helper": "^2.12",
"fakerphp/faker": "^1.9.1", "fakerphp/faker": "^1.9.1",
"laravel-lang/common": "^2.0", "laravel-lang/common": "^6.1.0",
"laravel/breeze": "^1.1", "laravel/breeze": "^1.1",
"laravel/sail": "^1.0.1", "laravel/sail": "^1.27.2",
"mockery/mockery": "^1.4.2", "mockery/mockery": "^1.4.2",
"nunomaduro/collision": "^6.1", "nunomaduro/collision": "^7.10.0",
"phpunit/phpunit": "^9.3.3", "phpunit/phpunit": "^10.5.9",
"spatie/laravel-ignition": "^1.0" "spatie/laravel-ignition": "^2.4.1"
}, },
"autoload": { "autoload": {
"files": [ "files": [