/** * Execute the console command. * * @return void */ public function fire() { $counter = $this->manager->importTranslations(); $this->info('Done importing, processed ' . $counter . ' items!'); }
public function getImport() { $counter = $this->manager->importTranslations(); return back()->with('counter', $counter); }