places = Place::all(); } /** * Execute the console command. * * @return mixed */ public function handle() { foreach ($this->places as $place) { if ($place->foursqaure !== null) { $place->external_urls = $place->foursquare; } } $this->info('All Places have had their external URLs values updated to the new structure.'); } }