ask("Write WP taxonomy name. Write nothing if you want to save changes.", "" ); if( $taxonomy == "" ) break; $tableName = $this->ask("Write equivalent Laravel table name."); $taxonomyMap[$taxonomy] = $tableName; } DB::table('migration_settings') ->updateOrInsert([ 'key' => 'wp_taxonomies_to_laravel_tables' ],[ 'value' => json_encode($taxonomyMap), 'updated_at' => now() ]); $this->info('WP Taxonomies to Laravel tables have been configured.'); } }