public function transform(Team $team)
    {
        return [
            'captainName' => "{$team->user->name}",
            'captainId' => $team->user_id,
            'country' => $team->country,
            'createdAt' => $team->created_at->toW3cString(),
            'id' => $team->id,
            'name' => $team->name,
            'timezone' => $team->timezone,
            'updatedAt' => $team->updated_at->toW3cString(),
        ];
    }
public function transform(Team $team)
    {
        return [
            'captainName' => "{$team->user->name}",
            'captainId' => $team->user_id,
            'country' => $team->country,
            'createdAt' => $team->created_at->toW3cString(),
            'id' => $team->id,
            'name' => $team->name,
            'timezone' => $team->timezone,
            'updatedAt' => $team->updated_at->toW3cString(),
        ];
    }
public function transform ( Team $ team ) { return [ 'captainName' => "{$team->user->name}" , 'captainId' => $ team -> user_id , 'country' => $ team -> country , 'createdAt' => $ team -> created_at -> toW3cString ( ) , 'id' => $ team -> id , 'name' => $ team -> name , 'timezone' => $ team -> timezone , 'updatedAt' => $ team -> updated_at -> toW3cString ( ) , ] ; }
Transformer to generate JSON response with Team data

@return array
Transformer to generate JSON response with Team data