$shelf = clone $shelf;
$shelf->unsetRelations()->refresh();
- $shelf->load(['tags', 'cover']);
- $shelf->makeVisible('description_html')
- ->setAttribute('description_html', $shelf->descriptionHtml());
+ $shelf->load(['tags']);
+ $shelf->makeVisible(['cover', 'description_html'])
+ ->setAttribute('description_html', $shelf->descriptionInfo()->getHtml())
+ ->setAttribute('cover', $shelf->coverInfo()->getImage());
return $shelf;
}