public static function dataTablePaginate($request, $parameters = [])
    {
        // Datatable paginate
        $parameters['start']   = null;
        $parameters['length']  = null;

        if($request->input('start') != null && $request->input('length') != '-1')
        {
            $parameters['start']    = $request->input('start');
            $parameters['length']   = $request->input('length');
        }

        return $parameters;
    }
public static function dataTablePaginate($request, $parameters = [])
    {
        // Datatable paginate
        $parameters['start']   = null;
        $parameters['length']  = null;

        if($request->input('start') != null && $request->input('length') != '-1')
        {
            $parameters['start']    = $request->input('start');
            $parameters['length']   = $request->input('length');
        }

        return $parameters;
    }
public static function dataTablePaginate ( $ request , $ parameters = [ ] ) { // Datatable paginate $ parameters [ 'start' ] = null ; $ parameters [ 'length' ] = null ; if ( $ request -> input ( 'start' ) != null && $ request -> input ( 'length' ) != '-1' ) { $ parameters [ 'start' ] = $ request -> input ( 'start' ) ; $ parameters [ 'length' ] = $ request -> input ( 'length' ) ; } return $ parameters ; }
Function to set config arguments datatable

@access  public
@param   \Illuminate\Http\Request $request
@param   array $parameters
@return  array
Function to set config arguments datatable