/** * Execute the job. * * @return bool */ public function handle() { $this->service->name = $this->request->input('name'); $this->service->description = $this->request->input('description'); if ($this->service->save()) { $this->dispatch(new CreateFirst($this->service)); return true; } return false; }
/** * Execute the job. * * @return bool */ public function handle() { $this->service->name = $this->request->input('name', $this->service->name); $this->service->description = $this->request->input('description', $this->service->description); return $this->service->save(); }