aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/Http/Controllers/FormController.php7
-rw-r--r--composer.json4
2 files changed, 5 insertions, 6 deletions
diff --git a/app/Http/Controllers/FormController.php b/app/Http/Controllers/FormController.php
index 0fc62fe..1f11e38 100644
--- a/app/Http/Controllers/FormController.php
+++ b/app/Http/Controllers/FormController.php
@@ -21,16 +21,15 @@ namespace App\Http\Controllers;
use LuoParseTrainer\Form;
use LuoParseTrainer\RandomLog;
-use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
-use Illuminate\Support\Facades\Input;
+use Illuminate\Support\Facades\Request;
use Illuminate\Support\Facades\Validator;
class FormController extends Controller {
public function random() {
$forms = Form::all();
- foreach (Input::get() as $col => $val) {
+ foreach (Request::input() as $col => $val) {
if ($col == '_token')
continue;
$vals = explode(',', $val);
@@ -39,7 +38,7 @@ class FormController extends Controller {
$form = $forms->random();
$log = new RandomLog();
- $log->request = json_encode(Input::get());
+ $log->request = json_encode(Request::input());
$log->response = $form->id;
$log->ip = $_SERVER['REMOTE_ADDR'];
$log->save();
diff --git a/composer.json b/composer.json
index 7c2df3e..10914b7 100644
--- a/composer.json
+++ b/composer.json
@@ -5,9 +5,9 @@
"license": "GPLv3",
"type": "project",
"require": {
- "php": ">=7.1.3",
+ "php": ">=7.2.0",
"fideloper/proxy": "^4.0",
- "laravel/framework": "5.8.*",
+ "laravel/framework": "^6.0",
"doctrine/dbal": "^2.5"
},
"require-dev": {