Exemplo n.º 1
0
 /**
  * Execute the job.
  *
  * @return bool
  */
 public function handle()
 {
     $this->metric->user_id = auth()->id();
     $this->metric->name = $this->request->input('name');
     $this->metric->symbol = $this->request->input('symbol');
     return $this->metric->save();
 }
Exemplo n.º 2
0
 /**
  * Execute the job.
  *
  * @return bool
  */
 public function handle()
 {
     $this->metric->name = $this->request->input('name', $this->metric->name);
     $this->metric->symbol = $this->request->input('symbol', $this->metric->symbol);
     return $this->metric->save();
 }