Skip to content

Commit

Permalink
atualizando o sistema gráfica para Laravel 11
Browse files Browse the repository at this point in the history
  • Loading branch information
leticialfgo committed Sep 12, 2024
1 parent 6d49638 commit 2c2f5b1
Show file tree
Hide file tree
Showing 7 changed files with 2,991 additions and 2,688 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ APP_URL=http://127.0.0.1:8000
LOG_CHANNEL=stack
LOG_LEVEL=debug

DB_CONNECTION=mysql
DB_CONNECTION=mariadb
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Kernel extends HttpKernel
protected $middleware = [
// \App\Http\Middleware\TrustHosts::class,
\App\Http\Middleware\TrustProxies::class,
\Fruitcake\Cors\HandleCors::class,
\Illuminate\Http\Middleware\HandleCors::class,
\App\Http\Middleware\PreventRequestsDuringMaintenance::class,
\Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
\App\Http\Middleware\TrimStrings::class,
Expand Down
9 changes: 7 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,10 @@ 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;
}
29 changes: 12 additions & 17 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,30 @@
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"php": "^7.3|^8.0",
"axn/laravel-stepper": "^1.5",
"barryvdh/laravel-dompdf": "^0.8.6",
"doctrine/dbal": "^3.1",
"php": "^8.3",
"fflch/laravel-fflch-pdf": "^1.0",
"fflch/laravel-fflch-stepper": "^2.0",
"fideloper/proxy": "^4.4",
"fruitcake/laravel-cors": "^2.0",
"fflch/laravel-fflch-stepper": "2.0.5",
"guzzlehttp/guzzle": "^7.0.1",
"laravel/framework": "^8.40",
"laravel/framework": "^11.0",
"laravel/tinker": "^2.5",
"laravel/ui": "^3.3",
"rap2hpoutre/laravel-log-viewer": "^1.7",
"laravel/ui": "^4.0",
"rap2hpoutre/laravel-log-viewer": "^2.4",
"spatie/laravel-model-status": "^1.10",
"spatie/laravel-settings": "^2.1",
"uspdev/cache": "^0.7.3",
"spatie/laravel-settings": "^3.3",
"uspdev/cache": "^1.0",
"uspdev/laravel-usp-faker": "^1.0",
"uspdev/laravel-usp-theme": "^2.1",
"uspdev/laravel-usp-validators": "^1.0",
"uspdev/replicado": "^1.7",
"uspdev/replicado": "^1.5",
"uspdev/senhaunica-socialite": "^4.0"

},
"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"
"nunomaduro/collision": "^8.4",
"phpunit/phpunit": "^10.0"
},
"autoload": {
"psr-4": {
Expand Down Expand Up @@ -70,6 +65,6 @@
"preferred-install": "dist",
"sort-packages": true
},
"minimum-stability": "dev",
"minimum-stability": "stable",
"prefer-stable": true
}
Loading

0 comments on commit 2c2f5b1

Please sign in to comment.