enum('status', ['pending', 'succeeded', 'failed', 'refunded', 'processed'])->default('pending')->change(); // Add the cards JSON column $table->json('cards')->nullable()->after('status'); }); } /** * Reverse the migrations. */ public function down(): void { Schema::table('payments', function (Blueprint $table) { // Revert the status enum to its original values $table->enum('status', ['pending', 'succeeded', 'failed', 'refunded'])->default('pending')->change(); // Remove the cards column $table->dropColumn('cards'); }); } };