/** * Find many posts by category. * * @param ICategory $category * @param null $limit * @return EntryCollection */ public function findManyByCategory(ICategory $category, $limit = null) { $related = $this->modelClassInstance->active()->where('category_id', $category->getId())->paginate($limit); return $related; }