Add username and password fields to VirtualMachines model and database migration; update related email templates to use config for frontend URL

This commit is contained in:
baodev0
2026-07-14 11:10:38 +07:00
parent 8e1252567e
commit f035730a44
8 changed files with 114 additions and 18 deletions
@@ -0,0 +1,23 @@
<?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('virtual_machines', function (Blueprint $table) {
$table->string('username')->nullable()->after('ip');
$table->string('password')->nullable()->after('username');
});
}
public function down(): void
{
Schema::table('virtual_machines', function (Blueprint $table) {
$table->dropColumn(['username', 'password']);
});
}
};