Add mass assignable attributes to User model and specify custom login page in AdminPanelProvider

This commit is contained in:
2025-09-22 13:35:08 +05:00
parent 8a14482c07
commit 60afe0c441
4 changed files with 88 additions and 1 deletions

View File

@@ -0,0 +1,28 @@
<?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('phone_number')->unique()->nullable()->after('email');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('users', function (Blueprint $table) {
$table->dropColumn('phone_number');
});
}
};