public function products(Host $host) { return $host->products()->get()->map(function ($host) { return new ProductAPIObject($host); }); }