protected function runPaginationCountQuery($columns = ['*'])
    {
        return $this->cloneWithout(['columns', 'orders', 'limit', 'offset'])
            ->cloneWithoutBindings(['select', 'order'])
            ->setAggregate('count', $this->withoutSelectAliases($columns))
            ->get()->all();
    }
protected function runPaginationCountQuery($columns = ['*'])
    {
        return $this->cloneWithout(['columns', 'orders', 'limit', 'offset'])
            ->cloneWithoutBindings(['select', 'order'])
            ->setAggregate('count', $this->withoutSelectAliases($columns))
            ->get()->all();
    }
protected function runPaginationCountQuery ( $ columns = [ '*' ] ) { return $ this -> cloneWithout ( [ 'columns' , 'orders' , 'limit' , 'offset' ] ) -> cloneWithoutBindings ( [ 'select' , 'order' ] ) -> setAggregate ( 'count' , $ this -> withoutSelectAliases ( $ columns ) ) -> get ( ) -> all ( ) ; }
Run a pagiantion count query.

@param array $columns

@return array
Run a pagiantion count query .