feat: Implement payment method fields, refactor order creation logic to support detailed order items and VM provisioning, and add admin notifications.

This commit is contained in:
pbao9
2026-03-11 10:14:32 +07:00
parent 7fdcc01027
commit 5649674eb4
9 changed files with 208 additions and 61 deletions
@@ -0,0 +1,31 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
public function up(): void
{
Schema::table('invoice', function (Blueprint $table) {
$table->string('payment_method')->nullable()->after('status');
});
Schema::table('order', function (Blueprint $table) {
if (!Schema::hasColumn('order', 'payment_method')) {
$table->string('payment_method')->nullable()->after('status');
}
});
}
public function down(): void
{
Schema::table('invoice', function (Blueprint $table) {
$table->dropColumn('payment_method');
});
Schema::table('order', function (Blueprint $table) {
$table->dropColumn('payment_method');
});
}
};