From 0a2c626f89c6f39058ae71a1e7ecc7689bfd86b9 Mon Sep 17 00:00:00 2001 From: Tokumeikoi Date: Tue, 18 Feb 2020 21:46:00 +0800 Subject: [PATCH] update tutorial --- app/Http/Controllers/Admin/TutorialController.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/Http/Controllers/Admin/TutorialController.php b/app/Http/Controllers/Admin/TutorialController.php index bf86e318..a1d09b14 100644 --- a/app/Http/Controllers/Admin/TutorialController.php +++ b/app/Http/Controllers/Admin/TutorialController.php @@ -18,12 +18,7 @@ class TutorialController extends Controller public function save(TutorialSave $request) { - $params = $request->only([ - 'title', - 'description', - 'steps', - 'icon' - ]); + $params = $request->only(array_keys(TutorialSave::RULES)); if (!$request->input('id')) { if (!Tutorial::create($params)) {