Ejemplo n.º 1
0
 /**
  * Execute the job.
  *
  * @return void
  */
 public function handle(Subject $model)
 {
     $model->find($this->id)->update($this->request->only(['name', 'code', 'abbreviation']));
     $model->category()->associate($request->get('category_id'));
     $model->save();
 }