diff --git a/config/app.php b/config/app.php index 97e4e954..a6ebd715 100644 --- a/config/app.php +++ b/config/app.php @@ -80,7 +80,7 @@ return [ 'key' => env('APP_KEY'), - 'cipher' => MCRYPT_RIJNDAEL_256, + 'cipher' => MCRYPT_RIJNDAEL_128, /* |-------------------------------------------------------------------------- diff --git a/config/session.php b/config/session.php index d4ad0f16..e347e35b 100644 --- a/config/session.php +++ b/config/session.php @@ -16,7 +16,7 @@ return [ | */ - 'driver' => env('SESSION_DRIVER', 'file'), + 'driver' => env('SESSION_DRIVER', 'database'), /* |-------------------------------------------------------------------------- @@ -148,6 +148,6 @@ return [ | */ - 'secure' => false, + 'secure' => env('SESSION_HTTPS_ONLY', true), ]; diff --git a/database/migrations/2015_09_12_225021_create_session_table.php b/database/migrations/2015_09_12_225021_create_session_table.php new file mode 100644 index 00000000..ab28f1ab --- /dev/null +++ b/database/migrations/2015_09_12_225021_create_session_table.php @@ -0,0 +1,31 @@ +string('id')->unique(); + $table->text('payload'); + $table->integer('last_activity'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('sessions'); + } +} diff --git a/resources/environments/.env.example b/resources/environments/.env.example index dce9ce8c..b0321a00 100644 --- a/resources/environments/.env.example +++ b/resources/environments/.env.example @@ -8,7 +8,7 @@ DB_DATABASE=homestead DB_USERNAME=homestead DB_PASSWORD=secret -SESSION_DRIVER=file +SESSION_HTTPS_ONLY=false QUEUE_DRIVER=sync MAIL_DRIVER=smtp diff --git a/resources/environments/.env.local b/resources/environments/.env.local index 92fad214..85eaebee 100644 --- a/resources/environments/.env.local +++ b/resources/environments/.env.local @@ -1,14 +1,14 @@ APP_ENV=local APP_DEBUG=true APP_URL=http://pony.fm.local/ -APP_KEY=AQUSDTDK5xA04yb9eO9iwlm72NpC8e90 +APP_KEY=q5lKAapzJwZas0izFS1CfCn3oX8Kk2jj DB_HOST=localhost DB_DATABASE=homestead DB_USERNAME=homestead DB_PASSWORD=secret -SESSION_DRIVER=file +SESSION_HTTPS_ONLY=false QUEUE_DRIVER=sync MAIL_DRIVER=smtp diff --git a/resources/environments/.env.production b/resources/environments/.env.production index 81394d4c..bcc7bf00 100644 Binary files a/resources/environments/.env.production and b/resources/environments/.env.production differ diff --git a/resources/environments/.env.stage b/resources/environments/.env.stage index 76abe1a3..199dcfa4 100644 Binary files a/resources/environments/.env.stage and b/resources/environments/.env.stage differ