feat: Implement VNPAY callback redirection to frontend and add UUID/public code to transactions.
This commit is contained in:
@@ -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']);
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user