src/PaginateRoute.php
public function addPageQuery($url, $page, $full = false)
    {
        // If the first page's URL is requested and $full is set to false, there's nothing to be added.
        if ($page === 1 && ! $full) {
            return $url;
        }

        return trim($url, '/')."/{$this->pageKeyword}/{$page}";
    }
public function addPageQuery($url, $page, $full = false)
    {
        // If the first page's URL is requested and $full is set to false, there's nothing to be added.
        if ($page === 1 && ! $full) {
            return $url;
        }

        return trim($url, '/')."/{$this->pageKeyword}/{$page}";
    }
public function addPageQuery ( $ url , $ page , $ full = false ) { // If the first page's URL is requested and $full is set to false, there's nothing to be added. if ( $ page === 1 && ! $ full ) { return $ url ; } return trim ( $ url , '/' ) . "/{$this->pageKeyword}/{$page}" ; }
Append the page query to a URL.

@param string $url
@param int    $page
@param bool   $full Return the full version of the URL in for the first page
Ex. /users/page/1 instead of /users

@return string
Append the page query to a URL .