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
@@ -14,10 +14,13 @@ class CurrencyRateLogResource extends JsonResource
*/
public function toArray($request)
{
$currencyRate = $this->currencyRate;
return [
'currency_rate_id' => $this->currency_rate_id,
'rate' => $this->selling,
'created_at' => $this->created_at->format('d-m-Y'),
'payment_method_type' => $currencyRate->payment_method_type,
];
}
}