Skip to content

Commit

Permalink
upgrade to Laravel 9.x
Browse files Browse the repository at this point in the history
  • Loading branch information
ovidiustanc123 committed Apr 1, 2022
1 parent 668ed51 commit b300135
Show file tree
Hide file tree
Showing 5 changed files with 737 additions and 817 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ All notable changes to `Soft UI Dashboard Laravel` will be documented in this fi
- Register
- Forgot password
- Profile edit

## [1.0.1]
- Upgrade to Laravel 9.x

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ If you don't already have an Apache local environment with PHP and MySQL, use on
- Mac: https://wpshout.com/quick-guides/how-to-install-mamp-on-your-mac/

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


## Installation
Expand Down
8 changes: 6 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,9 @@ class TrustProxies extends Middleware
*
* @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;
}
23 changes: 10 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,19 @@
"license": "MIT",
"require": {
"php": "^7.3|^8.0",
"fideloper/proxy": "^4.4",
"fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^7.0.1",
"laravel/framework": "^8.75",
"laravel/tinker": "^2.5",
"league/flysystem": "1.1.4",
"livewire/livewire": "^2.4",
"symfony/http-kernel": "5.4"
"guzzlehttp/guzzle": "^7.4",
"laravel/framework": "^9.0",
"laravel/tinker": "^2.6",
"livewire/livewire": "^2.8"
},
"require-dev": {
"facade/ignition": "^2.5",
"fakerphp/faker": "^1.9.1",
"laravel/sail": "^1.0.1",
"mockery/mockery": "^1.4.2",
"nunomaduro/collision": "^5.0",
"phpunit/phpunit": "^9.3.3"
"spatie/laravel-ignition": "^1.0",
"fakerphp/faker": "^1.17",
"laravel/sail": "^1.12",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^6.1",
"phpunit/phpunit": "^9.5.10"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit b300135

Please sign in to comment.