visuddhinanda 2 лет назад
Родитель
Сommit
fd126b8b74
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      app/Models/Attachment.php

+ 5 - 0
app/Models/Attachment.php

@@ -8,4 +8,9 @@ use Illuminate\Database\Eloquent\Model;
 class Attachment extends Model
 {
     use HasFactory;
+    protected $primaryKey = 'id';
+    protected $casts = [
+        'id' => 'string'
+    ];
+    public  $incrementing = true;
 }