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

@@ -14,6 +14,18 @@ class User extends Authenticatable implements FilamentUser
/** @use HasFactory<UserFactory> */
use HasFactory, Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array<int, string>
*/
protected $fillable = [
'name',
'email',
'password',
'phone_number',
];
/**
* The attributes that should be hidden for serialization.
*