Răsfoiți Sursa

字段uuid 转 string

visuddhinanda@gmail.com 3 ani în urmă
părinte
comite
c5bde13e0a
1 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  1. 3 1
      app/Models/View.php

+ 3 - 1
app/Models/View.php

@@ -10,7 +10,9 @@ class View extends Model
     use HasFactory;
     use HasFactory;
 
 
     protected $casts = [
     protected $casts = [
-    'id' => 'string'
+    'id' => 'string',
+    'target_id' => 'string'
     ];
     ];
+
     protected $fillable = ['target_type' , 'target_id' , 'user_id', 'user_ip'];
     protected $fillable = ['target_type' , 'target_id' , 'user_id', 'user_ip'];
 }
 }