update rate history module

This commit is contained in:
edmondlang
2023-02-12 10:40:50 +08:00
parent 3a7ac7efb8
commit a423ec43cd
3 changed files with 16 additions and 3 deletions
+9
View File
@@ -1,10 +1,19 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class CurrencyRateLog extends AbstractModel
{
protected $table = 'currency_rate_logs';
/**
* @return BelongsTo
*/
public function currencyRate(): BelongsTo
{
return $this->BelongsTo(CurrencyRate::class, 'currency_rate_id', 'id');
}
}