Files
exchange-2.0/app/Http/Resources/BankResource.php
T
2023-08-30 11:49:29 +08:00

33 lines
884 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,
'swift' => $this->swift,
'holder_name' => $this->holder_name,
'account_no' => $this->account_no,
'country_id' => $this->country_id,
'default' => $this->default,
'status' => $this->status,
];
}
}