Skip to content
This repository has been archived by the owner on May 21, 2021. It is now read-only.

Commit

Permalink
Merge pull request #33 from hedii/laravel56
Browse files Browse the repository at this point in the history
Upgrade Laravel to 5.6
  • Loading branch information
hedii authored Feb 17, 2018
2 parents b292974 + 0c2b3cb commit 44bb5be
Show file tree
Hide file tree
Showing 10 changed files with 502 additions and 380 deletions.
6 changes: 5 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ APP_NAME=Crawler
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://crawler.localhost

LOG_CHANNEL=stack

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
Expand Down Expand Up @@ -33,3 +34,6 @@ PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1

MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
12 changes: 3 additions & 9 deletions app/Http/Middleware/TrustProxies.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,9 @@ class TrustProxies extends Middleware
protected $proxies;

/**
* The current proxy header mappings.
* The headers that should be used to detect proxies.
*
* @var array
* @var string
*/
protected $headers = [
Request::HEADER_FORWARDED => 'FORWARDED',
Request::HEADER_X_FORWARDED_FOR => 'X_FORWARDED_FOR',
Request::HEADER_X_FORWARDED_HOST => 'X_FORWARDED_HOST',
Request::HEADER_X_FORWARDED_PORT => 'X_FORWARDED_PORT',
Request::HEADER_X_FORWARDED_PROTO => 'X_FORWARDED_PROTO',
];
protected $headers = Request::HEADER_X_FORWARDED_ALL;
}
3 changes: 1 addition & 2 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace App\Providers;

use Illuminate\Support\Facades\Blade;
use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
Expand All @@ -14,7 +13,7 @@ class AppServiceProvider extends ServiceProvider
*/
public function boot()
{
Blade::doubleEncode();
//
}

/**
Expand Down
9 changes: 5 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,20 @@
"require": {
"php": ">=7.2.0",
"doctrine/dbal": "^2.6",
"fideloper/proxy": "~3.3",
"fideloper/proxy": "~4.0",
"guzzlehttp/guzzle": "^6.3",
"hedii/extractors": "^2.0",
"laravel/framework": "5.5.*",
"laravel/passport": "^4.0",
"laravel/framework": "5.6.*",
"laravel/passport": "~5.0",
"laravel/tinker": "~1.0"
},
"require-dev": {
"barryvdh/laravel-ide-helper": "^2.4",
"filp/whoops": "~2.0",
"fzaninotto/faker": "~1.4",
"mockery/mockery": "~1.0",
"phpunit/phpunit": "~6.0",
"nunomaduro/collision": "~1.1",
"phpunit/phpunit": "~7.0",
"symfony/thanks": "^1.0"
},
"autoload": {
Expand Down
Loading

0 comments on commit 44bb5be

Please sign in to comment.