diff --git a/app/Admin.php b/app/Admin.php index 56f2cae..22804f3 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,9 +67,7 @@ class Admin extends Authenticatable implements Auditable * * @var array */ - protected $fillable = [ - 'name', 'username', 'password','project_ids','remember_token' - ]; + protected $guarded = ['id']; /** * The attributes that should be hidden for arrays.