Attachments for categories #2828

This commit is contained in:
James Cole
2020-03-19 18:37:57 +01:00
parent 417a0d0f83
commit 1f919b6d0e
4 changed files with 25 additions and 7 deletions

View File

@@ -179,7 +179,7 @@ class CategoryRepository implements CategoryRepositoryInterface
public function getCategories(): Collection
{
/** @var Collection $set */
$set = $this->user->categories()->orderBy('name', 'ASC')->get();
$set = $this->user->categories()->with(['attachments'])->orderBy('name', 'ASC')->get();
return $set;
}