Files
InvoiceShelf/app/Http/Resources/ExchangeRateLogResource.php
Darko Gjorgjijoski 6b80b5f48d Change namespace
2024-01-27 23:53:20 +01:00

26 lines
608 B
PHP

<?php
namespace InvoiceShelf\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,
];
}
}