/** * Executes the job. * * @return bool */ public function handle() { $this->status->user_id = auth()->id(); $this->status->name = $this->request->input('name'); $this->status->color = $this->request->input('color'); return $this->status->save(); }
/** * Execute the job. * * @return bool */ public function handle() { $this->status->name = $this->request->input('name', $this->status->name); $this->status->color = $this->request->input('color', $this->status->color); return $this->status->save(); }