Skip to content

Commit b300135

Browse files
upgrade to Laravel 9.x
1 parent 668ed51 commit b300135

File tree

5 files changed

+737
-817
lines changed

5 files changed

+737
-817
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,7 @@ All notable changes to `Soft UI Dashboard Laravel` will be documented in this fi
88
- Register
99
- Forgot password
1010
- Profile edit
11+
12+
## [1.0.1]
13+
- Upgrade to Laravel 9.x
14+

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ If you don't already have an Apache local environment with PHP and MySQL, use on
6060
- Mac: https://wpshout.com/quick-guides/how-to-install-mamp-on-your-mac/
6161

6262
Also, you will need to install Composer: https://getcomposer.org/doc/00-intro.md
63-
And Laravel: https://laravel.com/docs/8.x/installation
63+
And Laravel: https://laravel.com/docs/9.x/installation
6464

6565

6666
## Installation

app/Http/Middleware/TrustProxies.php

Lines changed: 6 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,9 @@ class TrustProxies extends Middleware
1919
*
2020
* @var int
2121
*/
22-
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;
22+
protected $headers = Request::HEADER_X_FORWARDED_FOR |
23+
Request::HEADER_X_FORWARDED_HOST |
24+
Request::HEADER_X_FORWARDED_PORT |
25+
Request::HEADER_X_FORWARDED_PROTO |
26+
Request::HEADER_X_FORWARDED_AWS_ELB;
2327
}

composer.json

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,19 @@
66
"license": "MIT",
77
"require": {
88
"php": "^7.3|^8.0",
9-
"fideloper/proxy": "^4.4",
109
"fruitcake/laravel-cors": "^2.0",
11-
"guzzlehttp/guzzle": "^7.0.1",
12-
"laravel/framework": "^8.75",
13-
"laravel/tinker": "^2.5",
14-
"league/flysystem": "1.1.4",
15-
"livewire/livewire": "^2.4",
16-
"symfony/http-kernel": "5.4"
10+
"guzzlehttp/guzzle": "^7.4",
11+
"laravel/framework": "^9.0",
12+
"laravel/tinker": "^2.6",
13+
"livewire/livewire": "^2.8"
1714
},
1815
"require-dev": {
19-
"facade/ignition": "^2.5",
20-
"fakerphp/faker": "^1.9.1",
21-
"laravel/sail": "^1.0.1",
22-
"mockery/mockery": "^1.4.2",
23-
"nunomaduro/collision": "^5.0",
24-
"phpunit/phpunit": "^9.3.3"
16+
"spatie/laravel-ignition": "^1.0",
17+
"fakerphp/faker": "^1.17",
18+
"laravel/sail": "^1.12",
19+
"mockery/mockery": "^1.4.4",
20+
"nunomaduro/collision": "^6.1",
21+
"phpunit/phpunit": "^9.5.10"
2522
},
2623
"autoload": {
2724
"psr-4": {

0 commit comments

Comments
 (0)