ask("Write WP taxonomy name. Write nothing if you want to save changes.", "" ); if( $taxonomy == "" ) break; $section = $this->ask("Write entry section equivalent."); $taxonomyMap[$taxonomy] = $section; } DB::table('migration_settings') ->updateOrInsert([ 'key' => 'wp_categories_to_entry_sections' ],[ 'value' => json_encode($taxonomyMap), 'updated_at' => now() ]); $this->info('WP Categories to entry sections has been configured.'); } }