fix ringkasanbackup

This commit is contained in:
hafifierahman
2023-06-06 07:24:17 +08:00
parent 7303c6dc8b
commit f04e71ccbf
8 changed files with 364 additions and 70 deletions
+3 -1
View File
@@ -9,9 +9,11 @@ class RingkasanTebus extends Model
{
protected $table = 'ringkasan_tebus';
protected $primaryKey = 'teb_id';
public function main(): BelongsTo
{
return $this->belongsTo(RingkasanMain::class);
return $this->belongsTo(RingkasanMain::class, 'teb_id', 'teb_id');
}
public $timestamps = false;