浏览代码

fix: 🐛 Missing primary key on payments table

IceToast 2 年之前
父节点
当前提交
9d383600bc
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/Models/Payment.php

+ 1 - 0
app/Models/Payment.php

@@ -13,6 +13,7 @@ class Payment extends Model
     use HasFactory;
 
     public $incrementing = false;
+    protected $primaryKey = 'id';
 
     /**
      * @var string[]