/** * @param Category $category * @return mixed */ protected function propertyGroups(Category $category) { return PropertyGroup::where('category_id', $category->id)->with('translations')->get(); }