src/CollectionDataTable.php
private function revertIndexColumn($mDataSupport)
    {
        if ($this->columnDef['index']) {
            $index = $mDataSupport ? config('datatables.index_column', 'DT_RowIndex') : 0;
            $start = (int) $this->request->input('start');
            $this->collection->transform(function ($data) use ($index, &$start) {
                $data[$index] = ++$start;

                return $data;
            });
        }
    }
private function revertIndexColumn($mDataSupport)
    {
        if ($this->columnDef['index']) {
            $index = $mDataSupport ? config('datatables.index_column', 'DT_RowIndex') : 0;
            $start = (int) $this->request->input('start');
            $this->collection->transform(function ($data) use ($index, &$start) {
                $data[$index] = ++$start;

                return $data;
            });
        }
    }
private function revertIndexColumn ( $ mDataSupport ) { if ( $ this -> columnDef [ 'index' ] ) { $ index = $ mDataSupport ? config ( 'datatables.index_column' , 'DT_RowIndex' ) : 0 ; $ start = ( int ) $ this -> request -> input ( 'start' ) ; $ this -> collection -> transform ( function ( $ data ) use ( $ index , & $ start ) { $ data [ $ index ] = ++ $ start ; return $ data ; } ) ; } }
Revert transformed DT_RowIndex back to it's original values.

@param bool $mDataSupport
Revert transformed DT_RowIndex back to it s original values .