refactor: 更新迁移文件,更新配置

This commit is contained in:
2026-05-08 11:53:19 +08:00
parent 3f0bdda4e1
commit 5f4c13504c
7 changed files with 83 additions and 174 deletions

34
app/Models/AdminUser.php Normal file
View File

@@ -0,0 +1,34 @@
<?php
namespace App\Models;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
class AdminUser extends Authenticatable
{
use Notifiable;
protected $table = 'admin_users';
protected $fillable = [
'name',
'email',
'password',
'status',
];
protected $hidden = [
'password',
'remember_token',
];
protected function casts(): array
{
return [
'email_verified_at' => 'datetime',
'last_login_at' => 'datetime',
'password' => 'hashed',
];
}
}