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)) {