From 6b1861fa81a90cd1850b0b3d455048268b2254d1 Mon Sep 17 00:00:00 2001 From: cody <648753004@qq.com> Date: Sat, 12 Oct 2024 11:29:47 +0800 Subject: [PATCH] update --- app/Admin.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/Admin.php b/app/Admin.php index 22804f3..9931667 100644 --- a/app/Admin.php +++ b/app/Admin.php @@ -55,7 +55,7 @@ class Admin extends Authenticatable implements Auditable use SoftDeletes; use \OwenIt\Auditing\Auditable; - const GUARD_NAME = "admin"; + CONST GUARD_NAME = "admin"; public function guardName() { @@ -67,7 +67,9 @@ class Admin extends Authenticatable implements Auditable * * @var array */ - protected $guarded = ['id']; + protected $fillable = [ + 'name', 'username', 'password','project_ids','remember_token' + ]; /** * The attributes that should be hidden for arrays. @@ -75,7 +77,7 @@ class Admin extends Authenticatable implements Auditable * @var array */ protected $hidden = [ - 'password', 'remember_token', + 'password' ]; /**