Prechádzať zdrojové kódy

fillable для всех полей CharBase

ilg2005 4 mesiacov pred
rodič
commit
41eefa8122
1 zmenil súbory, kde vykonal 89 pridanie a 2 odobranie
  1. 89 2
      app/Models/Char/CharBase.php

+ 89 - 2
app/Models/Char/CharBase.php

@@ -11,10 +11,97 @@ class CharBase extends Model
   protected $table = "Table_CharBase";
   protected $primaryKey = "DBKey";
   protected $dates = [];
-  protected $guarded =
+  protected $fillable =
     [
       "Account",
-      "DBKey"
+      "AccountName",
+      "AchievementPoint",
+      "Angle",
+      "Ap",
+      "BoostSlot",
+      "CanUseSoulTalentsAwaken",
+      "Cg",
+      "ChangeWorld",
+      "Class",
+      "CollectingExp",
+      "CollectingGrade",
+      "Comment",
+      "Cp",
+      "CreateTime",
+      "DBKey",
+      "Dark",
+      "Deleted",
+      "DynamicWarpAngle",
+      "DynamicWarpMap",
+      "DynamicWarpPosX",
+      "DynamicWarpPosY",
+      "DynamicWarpPosZ",
+      "Ep",
+      "EventInGateArea",
+      "Exp",
+      "ExpirationPeriodInvenSlot",
+      "FarmDBKey",
+      "FellowBagSlot",
+      "FellowSlot",
+      "FellowSlotExp",
+      "Female",
+      "Fire",
+      "Fp",
+      "GuildDBKey",
+      "GuildMemberPermissions",
+      "GuildMemberRankName",
+      "GuildMemberType",
+      "Hp",
+      "Ice",
+      "Integration",
+      "InvenBag1Prioritize",
+      "InvenBag2Prioritize",
+      "InvenBag3Prioritize",
+      "InvenBag4Prioritize",
+      "InvenPrioritize",
+      "InvenSlot",
+      "ItemSerialOrder",
+      "KeepingSlot",
+      "LastAccessDate",
+      "LastSummonFellow",
+      "Level",
+      "Light",
+      "MakeCodeNo",
+      "MapId",
+      "MatchingRemMSec",
+      "MentoringGraduationCount",
+      "MentoringPenaltyTime",
+      "Money",
+      "Mp",
+      "Name",
+      "OnBoardSkillUnsealed",
+      "Online",
+      "PartyID",
+      "PosX",
+      "PosY",
+      "PosZ",
+      "PreMapId",
+      "PrePosX",
+      "PrePosY",
+      "PrePosZ",
+      "Race",
+      "Rp",
+      "SelectCount",
+      "SoulPoint",
+      "Sp",
+      "SpaceType",
+      "StartIdx",
+      "StaticWarpArea",
+      "SummonFellow",
+      "TitleRecID",
+      "TitleRecKey",
+      "TotalPlayTime",
+      "Tp",
+      "bCanUseSoulTalents",
+      "bMilitiaType",
+      "bMount",
+      "byIllegal",
+      "byUnderware"
     ];
 
   public $timestamps = false;