|
|
@@ -10,14 +10,15 @@ use App\Module\Pet\Casts\NumericAttributesCast;
|
|
|
/**
|
|
|
* 宠物配置模型
|
|
|
*
|
|
|
- * field start
|
|
|
- * @property int $id
|
|
|
+ * field start
|
|
|
+ * @property int $id
|
|
|
* @property string $pet_type 宠物类型
|
|
|
+ * @property string $name 宠物名字
|
|
|
* @property \App\Module\Pet\Casts\GradeProbability $grade_probability 品阶概率配置
|
|
|
* @property \App\Module\Pet\Casts\DisplayAttributesCast $display_attributes 显示属性配置
|
|
|
* @property \App\Module\Pet\Casts\NumericAttributesCast $numeric_attributes 数值属性配置
|
|
|
- * @property \Carbon\Carbon $created_at
|
|
|
- * @property \Carbon\Carbon $updated_at
|
|
|
+ * @property \Carbon\Carbon $created_at
|
|
|
+ * @property \Carbon\Carbon $updated_at
|
|
|
* field end
|
|
|
*/
|
|
|
class PetConfig extends ModelCore
|
|
|
@@ -30,10 +31,11 @@ class PetConfig extends ModelCore
|
|
|
*/
|
|
|
protected $table = 'pet_configs';
|
|
|
|
|
|
- // attrlist start
|
|
|
+ // attrlist start
|
|
|
protected $fillable = [
|
|
|
'id',
|
|
|
'pet_type',
|
|
|
+ 'name',
|
|
|
'grade_probability',
|
|
|
'display_attributes',
|
|
|
'numeric_attributes',
|