Files
exchange-2.0/app/Http/Resources/BookingResource.php
T
CheeSiong c3f153fe4b Create Booking Logic Class
Update Booking Logic Class
 Delete Booking Logic Class
2020-12-04 09:49:47 +08:00

31 lines
869 B
PHP

<?php
namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
class BookingResource 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,
'transferable_bank_id' => $this->transferable_bank_id,
'marking' => $this->marking,
'reference' => $this->reference,
'fix_amount' => $this->fix_amount,
'fix_currency_id' => $this->fix_currency_id,
'convertible_currency_id' => $this->convertible_currency_id,
'conversion_currency_id' => $this->conversion_currency_id,
'status' => $this->status
];
}
}