/** * Execute the job. * * @return bool */ public function handle() { $this->workRequest->subject = $this->request->input('subject', $this->workRequest->subject); $this->workRequest->best_time = $this->request->input('best_time', $this->workRequest->best_time); $this->workRequest->description = $this->request->clean($this->request->input('description', $this->workRequest->description)); return $this->workRequest->save(); }
/** * Execute the job. * * @return bool */ public function handle() { $this->workRequest->user_id = auth()->id(); $this->workRequest->subject = $this->request->input('subject'); $this->workRequest->best_time = $this->request->input('best_time'); $this->workRequest->description = $this->request->clean($this->request->input('description')); return $this->workRequest->save(); }