src/Concerns/CursorPagination.php
/**
     * Paginate the given cursor with the cursor  method.
     *
     * @param   int|null $perPage
     * @param   string|null $cursorColumn
     * @param   string $cursorDirection
     * @return  CursorPaginator
     */
Paginate the given cursor with the cursor  method.
@param   int|null $perPage
@param   string|null $cursorColumn
@param   string $cursorDirection
@return  CursorPaginator
Paginate the given cursor with the cursor method . @param int|null $perPage @param string|null $cursorColumn @param string $cursorDirection @return CursorPaginator
public function cursorPaginate($perPage = null, $cursorColumn = null, $cursorDirection = 'DESC')
    {
        $input = CursorPaginator::resolveBeforeAfter();
        $cursorColumn = [$cursorColumn, $cursorDirection];
        if ($after = Arr::get($input, 'after')) {
            return $this->newAfterCursorPaginator($after, $perPage, $cursorColumn);
        } else if ($before = Arr::get($input, 'before')) {
            return $this->newBeforeCursorPaginator($before, $perPage, $cursorColumn);
        } else {
            return $this->newDefaultCursorPaginator($perPage, $cursorColumn);
        }
    }
public function cursorPaginate ( $ perPage = null , $ cursorColumn = null , $ cursorDirection = 'DESC' ) { $ input = CursorPaginator :: resolveBeforeAfter ( ) ; $ cursorColumn = [ $ cursorColumn , $ cursorDirection ] ; if ( $ after = Arr :: get ( $ input , 'after' ) ) { return $ this -> newAfterCursorPaginator ( $ after , $ perPage , $ cursorColumn ) ; } else if ( $ before = Arr :: get ( $ input , 'before' ) ) { return $ this -> newBeforeCursorPaginator ( $ before , $ perPage , $ cursorColumn ) ; } else { return $ this -> newDefaultCursorPaginator ( $ perPage , $ cursorColumn ) ; } }
Paginate the given cursor with the cursor  method.
Paginate the given cursor with the cursor method .