feat: Implement VNPAY callback redirection to frontend and add UUID/public code to transactions.

This commit is contained in:
pbao9
2026-02-19 17:01:49 +07:00
parent c7215ababc
commit c720e62bda
8 changed files with 118 additions and 74 deletions
@@ -9,6 +9,7 @@ return new class extends Migration {
{
Schema::create('transactions', function (Blueprint $table) {
$table->id();
$table->uuid();
$table->string('trans')->nullable();
$table->integer('amount')->nullable();
@@ -0,0 +1,22 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
public function up()
{
Schema::table('transactions', function (Blueprint $table) {
$table->uuid('uuid')->unique()->nullable()->after('id');
$table->string('public_code')->unique()->nullable()->after('uuid');
});
}
public function down()
{
Schema::table('transactions', function (Blueprint $table) {
$table->dropColumn(['uuid', 'public_code']);
});
}
};