29 lines
782 B
PHP
Executable File
29 lines
782 B
PHP
Executable File
<?php
|
|
|
|
namespace Modules\Client\Transformers\Dashboard;
|
|
|
|
use Illuminate\Http\Resources\Json\JsonResource;
|
|
|
|
class MemberEmployeeDataResources extends JsonResource
|
|
{
|
|
/**
|
|
* Transform the resource into an array.
|
|
*
|
|
* @param \Illuminate\Http\Request $request
|
|
* @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializable
|
|
*/
|
|
public function toArray($request)
|
|
{
|
|
return [
|
|
'id' => $this->id,
|
|
'personId' => $this->person_id,
|
|
'memberId' => $this->member_id,
|
|
'fullName' => $this->full_name,
|
|
// 'service' => $this->service_code,
|
|
'start_date' => $this->start_date,
|
|
'end_date' => $this->end_date,
|
|
'status' => $this->active,
|
|
];
|
|
}
|
|
}
|