소스 검색

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[]