public function post_add_log_event(Request $request, Log $log, LogEvent $log_event) { $validation_rules = $log->getValidationRules(); $this->validate($request, $validation_rules); $arr_request = $log->getRequestArray($request); $log_event->name = $arr_request['name']; $log_event->client_id = Auth::id(); $log_event->save(); $log_event_id = $log_event->id; // return to raw password for view $data = $log->getDataArray($arr_request, Auth::id(), $log_event_id, $this->arr_logged_in_user); return view('log/add_log_event_results')->with('data', $data); }