/** * Execute the console command. * * @return mixed */ public function fire() { Departure::truncate(); Line::truncate(); Stop::truncate(); $cities = City::all(); foreach ($cities as $city) { $this->info('importing city: ' . $city->name); $lines = Line::import($city); foreach ($lines as $line) { $this->info('importing line: ' . $line->name); $stops = Stop::fullImport($line); } } }