src/PaginateRoute.php
public function getLeftPoint(LengthAwarePaginator $paginator)
    {
        $side = $paginator->onEachSide;
        $current = $paginator->currentPage();
        $last = $paginator->lastPage();

        if (! empty($side)) {
            $x = $current + $side;
            $offset = $x >= $last ? $x - $last : 0;
            $left = $current - $side - $offset;
        }

        return ! isset($left) || $left < 1 ? 1 : $left;
    }
public function getLeftPoint(LengthAwarePaginator $paginator)
    {
        $side = $paginator->onEachSide;
        $current = $paginator->currentPage();
        $last = $paginator->lastPage();

        if (! empty($side)) {
            $x = $current + $side;
            $offset = $x >= $last ? $x - $last : 0;
            $left = $current - $side - $offset;
        }

        return ! isset($left) || $left < 1 ? 1 : $left;
    }
public function getLeftPoint ( LengthAwarePaginator $ paginator ) { $ side = $ paginator -> onEachSide ; $ current = $ paginator -> currentPage ( ) ; $ last = $ paginator -> lastPage ( ) ; if ( ! empty ( $ side ) ) { $ x = $ current + $ side ; $ offset = $ x >= $ last ? $ x - $ last : 0 ; $ left = $ current - $ side - $ offset ; } return ! isset ( $ left ) || $ left < 1 ? 1 : $ left ; }
Get the left most point in the pagination element.

@param LengthAwarePaginator $paginator
@return int
Get the left most point in the pagination element .