Skip to content
Snippets Groups Projects
Commit 989d5135 authored by Tibo's avatar Tibo
Browse files

Upgraded to Laravel 5.6

parent cce0048a
No related branches found
No related tags found
No related merge requests found
...@@ -19,11 +19,13 @@ class TrustProxies extends Middleware ...@@ -19,11 +19,13 @@ class TrustProxies extends Middleware
* *
* @var array * @var array
*/ */
protected $headers = [ /*protected $headers = [
Request::HEADER_FORWARDED => 'FORWARDED', Request::HEADER_FORWARDED => 'FORWARDED',
Request::HEADER_X_FORWARDED_FOR => 'X_FORWARDED_FOR', Request::HEADER_X_FORWARDED_FOR => 'X_FORWARDED_FOR',
Request::HEADER_X_FORWARDED_HOST => 'X_FORWARDED_HOST', Request::HEADER_X_FORWARDED_HOST => 'X_FORWARDED_HOST',
Request::HEADER_X_FORWARDED_PORT => 'X_FORWARDED_PORT', Request::HEADER_X_FORWARDED_PORT => 'X_FORWARDED_PORT',
Request::HEADER_X_FORWARDED_PROTO => 'X_FORWARDED_PROTO', Request::HEADER_X_FORWARDED_PROTO => 'X_FORWARDED_PROTO',
]; ];*/
protected $headers = Request::HEADER_X_FORWARDED_ALL;
} }
...@@ -5,16 +5,17 @@ ...@@ -5,16 +5,17 @@
"license": "MIT", "license": "MIT",
"type": "project", "type": "project",
"require": { "require": {
"php": ">=7.0.0", "php": ">=7.1.3",
"fideloper/proxy": "~3.3", "fideloper/proxy": "~4.0",
"laravel/framework": "5.5.*", "laravel/framework": "5.6.*",
"laravel/tinker": "~1.0" "laravel/tinker": "~1.0",
"mongodb/mongodb": "1.3.*"
}, },
"require-dev": { "require-dev": {
"filp/whoops": "~2.0", "filp/whoops": "~2.0",
"fzaninotto/faker": "~1.4", "fzaninotto/faker": "~1.4",
"mockery/mockery": "~1.0", "mockery/mockery": "~1.0",
"phpunit/phpunit": "~6.0" "phpunit/phpunit": "~7.0"
}, },
"autoload": { "autoload": {
"classmap": [ "classmap": [
......
This diff is collapsed.
...@@ -163,7 +163,6 @@ return [ ...@@ -163,7 +163,6 @@ return [
Illuminate\Translation\TranslationServiceProvider::class, Illuminate\Translation\TranslationServiceProvider::class,
Illuminate\Validation\ValidationServiceProvider::class, Illuminate\Validation\ValidationServiceProvider::class,
Illuminate\View\ViewServiceProvider::class, Illuminate\View\ViewServiceProvider::class,
'Collective\Html\HtmlServiceProvider',
/* /*
* Package Service Providers... * Package Service Providers...
...@@ -177,7 +176,6 @@ return [ ...@@ -177,7 +176,6 @@ return [
// App\Providers\BroadcastServiceProvider::class, // App\Providers\BroadcastServiceProvider::class,
App\Providers\EventServiceProvider::class, App\Providers\EventServiceProvider::class,
App\Providers\RouteServiceProvider::class, App\Providers\RouteServiceProvider::class,
Jenssegers\Mongodb\MongodbServiceProvider::class,
], ],
/* /*
...@@ -226,10 +224,6 @@ return [ ...@@ -226,10 +224,6 @@ return [
'URL' => Illuminate\Support\Facades\URL::class, 'URL' => Illuminate\Support\Facades\URL::class,
'Validator' => Illuminate\Support\Facades\Validator::class, 'Validator' => Illuminate\Support\Facades\Validator::class,
'View' => Illuminate\Support\Facades\View::class, 'View' => Illuminate\Support\Facades\View::class,
'Moloquent' => Jenssegers\Mongodb\Eloquent\Model::class,
'Form' => 'Collective\Html\FormFacade',
'Html' => 'Collective\Html\HtmlFacade',
], ],
]; ];
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateSensorsTable extends Migration
{
protected $connection = 'mongodb';
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::connection($this->connection)->table('sensors', function(Blueprint $collection)
{
$collection->index('id');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::connection($this->connection)->table('sensors', function(Blueprint $collection)
{
$collection->dropIndex('id');
});
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment