Bläddra i källkod

服务包模型

jingyuzhi 4 år sedan
förälder
incheckning
adc0d7ced7
1 ändrade filer med 4 tillägg och 0 borttagningar
  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);