protected function fetchRecords()
    {
        $query = $this->queryHandler->getQuery();

        $orderByValue = $this->columnManager->getOrderBy();
        $orderByStatement = is_array($orderByValue) ? 'orderBy' : 'orderByRaw';
        $orderByValue = Arr::wrap($orderByValue);

        return $query->with($this->columnManager->getRelations())
            ->offset((int) request('start'))
            ->limit(min((int) request('length'), 100))
            ->{$orderByStatement}(...$orderByValue)
            ->get($this->columnManager->getSelectColumns());
    }
protected function fetchRecords()
    {
        $query = $this->queryHandler->getQuery();

        $orderByValue = $this->columnManager->getOrderBy();
        $orderByStatement = is_array($orderByValue) ? 'orderBy' : 'orderByRaw';
        $orderByValue = Arr::wrap($orderByValue);

        return $query->with($this->columnManager->getRelations())
            ->offset((int) request('start'))
            ->limit(min((int) request('length'), 100))
            ->{$orderByStatement}(...$orderByValue)
            ->get($this->columnManager->getSelectColumns());
    }
protected function fetchRecords ( ) { $ query = $ this -> queryHandler -> getQuery ( ) ; $ orderByValue = $ this -> columnManager -> getOrderBy ( ) ; $ orderByStatement = is_array ( $ orderByValue ) ? 'orderBy' : 'orderByRaw' ; $ orderByValue = Arr :: wrap ( $ orderByValue ) ; return $ query -> with ( $ this -> columnManager -> getRelations ( ) ) -> offset ( ( int ) request ( 'start' ) ) -> limit ( min ( ( int ) request ( 'length' ) , 100 ) ) -> { $ orderByStatement } ( ... $ orderByValue ) -> get ( $ this -> columnManager -> getSelectColumns ( ) ) ; }
Fetches records from the database.

@return \Illuminate\Support\Collection Records of the table
Fetches records from the database .