public function postConfigure(Request $request, ThreeStepUser $three_step_user, ThreeStepAdmin $threeStepAdmin) { // echo "<pre>"; // print_r($request); // echo "</pre>"; $validationRules = $threeStepAdmin->getValidationRulesConfigure(); $this->validate($request, $validationRules); $arrRequest = $threeStepAdmin->getRequestArrayConfigure($request); $threeStepAdmin = $threeStepAdmin->where('ts_user', 'admin')->first(); if (!$threeStepAdmin == null) { $threeStepAdmin->ts_implement = $arrRequest['ts_implement']; $threeStepAdmin->ts_bypass = $arrRequest['ts_bypass']; $threeStepAdmin->ts_test = $arrRequest['ts_test']; $threeStepAdmin->permit_delay = $arrRequest['permit_delay']; $threeStepAdmin->save(); $data = $threeStepAdmin->getDataArrayChangePassword(null, $this->arr_logged_in_user); return view('three_step_admin/configure_results')->with('data', $data); } else { $data = $three_step_admin->getDataArrayChangePassword('No three step user found.', $this->arr_logged_in_user); return view('three_step_admin/change_password_hint')->with('data', $data); } }