public function post_edit_log_event(Request $request, Log $log, LogEvent $log_event, Admin $admin) { $validation_rules = $log->getValidationRules(); $validation_messages = $admin->getValidationMessagesEditUser(); $this->validate($request, $validation_rules, $validation_messages); $log_event = $log_event->find($request->log_event_id); $log_event->name = $request->name; $arr_request = array(); $arr_request['name'] = $request->name; $log_event->save(); $log_event_id = $log_event->id; $data = $log->getDataArray($arr_request, Auth::id(), $log_event_id, $this->arr_logged_in_user); return view('log/edit_log_event_results')->with('data', $data); }