mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 12:33:56 +00:00
32 lines
847 B
PHP
32 lines
847 B
PHP
<?php
|
|
|
|
namespace App\Http\Resources;
|
|
|
|
use Illuminate\Http\Resources\Json\JsonResource;
|
|
|
|
class BankResource extends JsonResource
|
|
{
|
|
/**
|
|
* Transform the resource into an array.
|
|
*
|
|
* @param \Illuminate\Http\Request $request
|
|
* @return array
|
|
*/
|
|
public function toArray($request)
|
|
{
|
|
return [
|
|
'id' => $this->id,
|
|
'company_business_type' => $this->company->business_type,
|
|
'type' => $this->type,
|
|
'reference' => $this->reference,
|
|
'bank_name' => $this->bank_name,
|
|
'bank_branch' => $this->bank_branch,
|
|
'holder_name' => $this->holder_name,
|
|
'account_no' => $this->account_no,
|
|
'country_id' => $this->country_id,
|
|
'default' => $this->default,
|
|
'status' => $this->status,
|
|
];
|
|
}
|
|
}
|