/** * Execute the job. * * @return \Illuminate\Database\Eloquent\Model */ public function handle() { return $this->computer->patches()->create(['title' => $this->request->input('title'), 'description' => $this->request->input('description')]); }
/** * Execute the job. * * @return bool */ public function handle() { $this->patch->title = $this->request->input('title', $this->patch->title); $this->patch->description = $this->request->input('description', $this->patch->description); return $this->patch->save(); }