feat: add optional 'dni' and 'telefono' fields to User model and registration process

This commit is contained in:
2026-07-03 16:24:56 -03:00
parent 1d94ff8885
commit 6d066beea3
7 changed files with 71 additions and 5 deletions

View File

@@ -0,0 +1,29 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('users', function (Blueprint $table) {
$table->string('dni')->nullable()->after('email');
$table->string('telefono')->nullable()->after('dni');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('users', function (Blueprint $table) {
$table->dropColumn(['dni', 'telefono']);
});
}
};