/** * Execute the console command. * * @return mixed */ public function handle() { $this->info("Creating elasticsearch index"); $this->search->createIndex(); $this->search->insertDocument(array()); }