added relationships for mining taxes

This commit is contained in:
2021-02-22 19:09:11 +09:00
parent e14f9c0764
commit 02db5ce9a1
6 changed files with 52 additions and 4 deletions
+4
View File
@@ -26,4 +26,8 @@ class Payment extends Model
'payment_date',
'status',
];
public function getInvoice() {
return $this->belongsTo('App\Models\MiningTax\Invoice', 'invoice_id', 'invoice_id');
}
}