visuddhinanda 1 год назад
Родитель
Сommit
a2653bc119
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      app/Models/TagMap.php

+ 4 - 0
app/Models/TagMap.php

@@ -7,7 +7,11 @@ use Illuminate\Database\Eloquent\Model;
 
 class TagMap extends Model
 {
+    protected $primaryKey = 'id';
     protected $keyType = 'string';
+    protected $casts = [
+        'id' => 'string'
+    ];
 	protected $fillable = ['table_name' , 'anchor_id', 'tag_id'];
     use HasFactory;