mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 11:41:09 -04:00
26 lines
602 B
PHP
26 lines
602 B
PHP
<?php
|
|
|
|
namespace Crater\Http\Resources;
|
|
|
|
use Illuminate\Http\Resources\Json\JsonResource;
|
|
|
|
class ExchangeRateLogResource extends JsonResource
|
|
{
|
|
/**
|
|
* Transform the resource into an array.
|
|
*
|
|
* @param \Illuminate\Http\Request $request
|
|
* @return array
|
|
*/
|
|
public function toArray($request)
|
|
{
|
|
return [
|
|
'id' => $this->id,
|
|
'company_id' => $this->company_id,
|
|
'base_currency_id' => $this->base_currency_id,
|
|
'currency_id' => $this->currency_id,
|
|
'exchange_rate' => $this->exchange_rate,
|
|
];
|
|
}
|
|
}
|