Ejemplo n.º 1
0
 /**
  * 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')]);
 }
Ejemplo n.º 2
0
 /**
  * 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();
 }