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' ]; /**