Пример #1
0
 /**
  * Execute the command.
  *
  * @return void
  */
 public function handle()
 {
     $term = \App\Term::firstOrCreate(['q' => $this->q]);
     $term->increment('searches_count');
     $this->data['term_id'] = $term->id;
     \App\Search::firstOrCreate($this->data)->increment('count');
 }