public function transform(Member $member)
    {
        return [
            'createdAt' => $member->created_at->toW3cString(),
            'memberCategoryId' => $member->member_category_id,
            'memberCategoryName' => !empty($member->member_category) ? $member->member_category->name : null,
            'memberName' => $member->user->name,
            'id' => $member->id,
            'role' => $member->role,
            'status' => $member->status,
            'preference' => $member->preference,
            'updatedAt' => $member->updated_at->toW3cString(),
            'userId' => $member->user_id,
        ];
    }
public function transform(Member $member)
    {
        return [
            'createdAt' => $member->created_at->toW3cString(),
            'memberCategoryId' => $member->member_category_id,
            'memberCategoryName' => !empty($member->member_category) ? $member->member_category->name : null,
            'memberName' => $member->user->name,
            'id' => $member->id,
            'role' => $member->role,
            'status' => $member->status,
            'preference' => $member->preference,
            'updatedAt' => $member->updated_at->toW3cString(),
            'userId' => $member->user_id,
        ];
    }
public function transform ( Member $ member ) { return [ 'createdAt' => $ member -> created_at -> toW3cString ( ) , 'memberCategoryId' => $ member -> member_category_id , 'memberCategoryName' => ! empty ( $ member -> member_category ) ? $ member -> member_category -> name : null , 'memberName' => $ member -> user -> name , 'id' => $ member -> id , 'role' => $ member -> role , 'status' => $ member -> status , 'preference' => $ member -> preference , 'updatedAt' => $ member -> updated_at -> toW3cString ( ) , 'userId' => $ member -> user_id , ] ; }
Transformer to generate JSON response with summary Member data

@return array
Transformer to generate JSON response with summary Member data