public function getAllWithoutPagination($lang = "")
    {
        $result = DB::table('categories')->join('post_type', 'post_type.postTypeID', 'categories.postTypeID')->orderBy('name', 'postTypeID')->get();
        return Language::filterRows($result, false);
    }
public function getAllWithoutPagination($lang = "")
    {
        $result = DB::table('categories')->join('post_type', 'post_type.postTypeID', 'categories.postTypeID')->orderBy('name', 'postTypeID')->get();
        return Language::filterRows($result, false);
    }
public function getAllWithoutPagination ( $ lang = "" ) { $ result = DB :: table ( 'categories' ) -> join ( 'post_type' , 'post_type.postTypeID' , 'categories.postTypeID' ) -> orderBy ( 'name' , 'postTypeID' ) -> get ( ) ; return Language :: filterRows ( $ result , false ) ; }
Get all categories without pagination.

@param  string $lang
@return array|mixed
Get all categories without pagination .