Ejemplo n.º 1
0
 /**
  * Returns a new table of all of the specified computers patches.
  *
  * @param Computer $computer
  *
  * @return \Orchestra\Contracts\Html\Builder
  */
 public function table(Computer $computer)
 {
     return (new PatchPresenter($this->form, $this->table))->table($computer->patches());
 }
Ejemplo n.º 2
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')]);
 }