瀏覽代碼

服务包模型

jingyuzhi 4 年之前
父節點
當前提交
adc0d7ced7
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      app/Models/ServicePack.php

+ 4 - 0
app/Models/ServicePack.php

xqd
@@ -10,6 +10,10 @@ namespace App\Models;
 
 class ServicePack extends BaseModel
 {
+    protected $table = 'service_packs';
+    protected $casts = [
+        'label' => 'json',
+    ];
     public function team()
     {
         return $this->belongsTo(Team::class);