Explorar el Código

update: fix model

tokumeikoi hace 4 años
padre
commit
f2c7d092ac
Se han modificado 2 ficheros con 2 adiciones y 0 borrados
  1. 1 0
      app/Models/ServerShadowsocks.php
  2. 1 0
      app/Models/ServerTrojan.php

+ 1 - 0
app/Models/ServerShadowsocks.php

@@ -12,6 +12,7 @@ class ServerShadowsocks extends Model
     protected $casts = [
     protected $casts = [
         'created_at' => 'timestamp',
         'created_at' => 'timestamp',
         'updated_at' => 'timestamp',
         'updated_at' => 'timestamp',
+        'group_id' => 'array',
         'tags' => 'array'
         'tags' => 'array'
     ];
     ];
 }
 }

+ 1 - 0
app/Models/ServerTrojan.php

@@ -12,6 +12,7 @@ class ServerTrojan extends Model
     protected $casts = [
     protected $casts = [
         'created_at' => 'timestamp',
         'created_at' => 'timestamp',
         'updated_at' => 'timestamp',
         'updated_at' => 'timestamp',
+        'group_id' => 'array',
         'tags' => 'array'
         'tags' => 'array'
     ];
     ];
 }
 }