public function transform(MemberCategory $memberCategory)
    {
        return [
            'createdAt' => $memberCategory->created_at->toW3cString(),
            'description' => $memberCategory->description,
            'id' => $memberCategory->id,
            'name' => $memberCategory->name,
        ];
    }
public function transform(MemberCategory $memberCategory)
    {
        return [
            'createdAt' => $memberCategory->created_at->toW3cString(),
            'description' => $memberCategory->description,
            'id' => $memberCategory->id,
            'name' => $memberCategory->name,
        ];
    }
public function transform ( MemberCategory $ memberCategory ) { return [ 'createdAt' => $ memberCategory -> created_at -> toW3cString ( ) , 'description' => $ memberCategory -> description , 'id' => $ memberCategory -> id , 'name' => $ memberCategory -> name , ] ; }
Transformer to generate JSON response with MemberCategory

@return array
Transformer to generate JSON response with MemberCategory