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
+2 -1
View File
@@ -8,10 +8,11 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo;
class RingkasanLelong extends Model
{
protected $table = 'ringkasan_lelong';
protected $primaryKey = 'lel_id';
public function main(): BelongsTo
{
return $this->belongsTo(RingkasanMain::class);
return $this->belongsTo(RingkasanMain::class, 'lel_id', 'lel_id');
}
public $timestamps = false;