ソースを参照

add primaryKey

visuddhinanda 1 年間 前
コミット
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;