/** * @param int $pageId * @return Collection */ public function containerPagesFiltered($pageId) { $pageIds = $this->containerPageIdsFiltered($pageId); return $pageIds ? Page::whereIn('id', $pageIds)->get() : new Collection(); }