1 | <?php namespace FreedomCore\TrinityCore\Character\Models; |
||
37 | class CharacterGarrisonFollower extends CharacterBaseModel |
||
38 | { |
||
39 | |||
40 | /** |
||
41 | * @inheritdoc |
||
42 | * @var string |
||
43 | */ |
||
44 | protected $primaryKey = 'dbId'; |
||
45 | /** |
||
46 | * @inheritdoc |
||
47 | * @var bool |
||
48 | */ |
||
49 | public $incrementing = true; |
||
50 | /** |
||
51 | * @inheritdoc |
||
52 | * @var bool |
||
53 | */ |
||
54 | public $timestamps = false; |
||
55 | /** |
||
56 | * @inheritdoc |
||
57 | * @var array |
||
58 | */ |
||
59 | protected $casts = [ |
||
60 | 'dbId' => 'int', |
||
61 | 'guid' => 'int', |
||
62 | 'followerId' => 'int', |
||
63 | 'quality' => 'int', |
||
64 | 'level' => 'int', |
||
65 | 'itemLevelWeapon' => 'int', |
||
66 | 'itemLevelArmor' => 'int', |
||
67 | 'xp' => 'int', |
||
68 | 'currentBuilding' => 'int', |
||
69 | 'currentMission' => 'int', |
||
70 | 'status' => 'int' |
||
71 | ]; |
||
72 | /** |
||
73 | * @inheritdoc |
||
74 | * @var array |
||
75 | */ |
||
76 | protected $fillable = [ |
||
77 | 'guid', |
||
78 | 'followerId', |
||
79 | 'quality', |
||
80 | 'level', |
||
81 | 'itemLevelWeapon', |
||
82 | 'itemLevelArmor', |
||
83 | 'xp', |
||
84 | 'currentBuilding', |
||
85 | 'currentMission', |
||
86 | 'status' |
||
87 | ]; |
||
88 | |||
89 | /** |
||
90 | * Get character to whom this follower belongs |
||
91 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
92 | */ |
||
93 | public function character() |
||
97 | |||
98 | /** |
||
99 | * Get abilities of selected follower |
||
100 | * @return \Illuminate\Database\Eloquent\Relations\HasMany |
||
101 | */ |
||
102 | public function followerAbilities() |
||
106 | } |
||
107 |