app/Repositories/BlogRepository.php
/**
     * Retrieve all the categories.
     *
     * @param bool $category [ default = true ]  Use for switch list from active and trashed
     * @return Array
     */
Retrieve all the categories.
@param bool $category [ default = true ]  Use for switch list from active and trashed
@return Array
Retrieve all the categories . @param bool $category [ default = true ] Use for switch list from active and trashed @return Array
public function listCategoriesHierarchy()
    {
        $list = $this->category->listTreeCategories();
        return   $list;
    }
public function listCategoriesHierarchy ( ) { $ list = $ this -> category -> listTreeCategories ( ) ; return $ list ; }
Retrieve all the categories.
Retrieve all the categories .