diff --git a/database/migrations/2025_01_15_032951_create_temp_accounts_table.php b/database/migrations/2025_01_15_032951_create_temp_accounts_table.php new file mode 100644 index 0000000..a866f0c --- /dev/null +++ b/database/migrations/2025_01_15_032951_create_temp_accounts_table.php @@ -0,0 +1,38 @@ +id(); + foreach ($fieldArray as $field) { + $field = trim($field); + if ($field !== '@id') { // Skip @id as we already have $table->id() + $table->text($field)->nullable(); + } + } + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('temp_accounts'); + } +};