Files
exchange-2.0/app/Http/Resources/CurrencyResource.php
T
CheeSiong dec78bf8d7 Create Currency Logic Class
Update Currency Selling Logic Class
Delete Currency Selling Logic Class
Create Currency Log Service Class
2020-11-29 12:39:36 +08:00

27 lines
592 B
PHP

<?php
namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
class CurrencyResource extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
{
return [
'id' => $this->id,
'country_id' => $this->country_id,
'name' => $this->name,
'short_code' => $this->short_code,
'symbol' => $this->symbol,
'selling' => $this->selling
];
}
}