| 123456789101112131415161718192021222324252627282930313233 | <?phpnamespace App\Services\Content;use App\Repositories\ArticleCategoryRepository;class ArticleCategoryService{    /**     * @var ArticleCategoryRepository     */    protected $articleCategoryRepository;    /**     * ArticleCategoryService constructor.     * @param ArticleCategoryRepository $articleCategoryRepository     */    public function __construct(ArticleCategoryRepository $articleCategoryRepository)    {        $this->articleCategoryRepository = $articleCategoryRepository;    }    public function getChildCategorys($id, $limit)    {        $where = array();        $where['parent_id'] = $id;        $list=$this->articleCategoryRepository->getChildCategorys($where, $limit);        return $list;    }}
 |