<?php namespace App\Http\Resources; use Illuminate\Http\Resources\Json\JsonResource; class EmployeeBank extends JsonResource { /** * Transform the resource into an array. * * @param \Illuminate\Http\Request $request * @return array */ public function toArray($request) { return [ 'id' => $this->id, 'employee_id' => $this->employee_id, 'super_bank_name' => $this->super_bank_name, 'bank_name' => $this->bank_name, 'bank_code' => $this->bank_code, 'bank_num' => $this->bank_num, 'bank_man' => $this->bank_man, 'maximum' => $this->maximum, 'priority' => $this->priority, ]; } }