Esempio n. 1
0
 /**
  * Execute the job.
  *
  * @return \Illuminate\Database\Eloquent\Model
  */
 public function handle()
 {
     $status = $this->request->input('status');
     $title = $this->request->input('title');
     $description = $this->request->input('description');
     return $this->service->records()->create(compact('status', 'title', 'description'));
 }
Esempio n. 2
0
 /**
  * Execute the job.
  *
  * @return bool
  */
 public function handle()
 {
     $this->record->status = $this->record->input('status', $this->record->status);
     $this->record->title = $this->request->input('title', $this->record->title);
     $this->record->description = $this->request->input('description', $this->record->description);
     return $this->record->save();
 }