src/PaginateRoute.php
public function allUrls(LengthAwarePaginator $paginator, $full = false)
    {
        if (! $paginator->hasPages()) {
            return [];
        }

        $urls = [];
        $left = $this->getLeftPoint($paginator);
        $right = $this->getRightPoint($paginator);
        for ($page = $left; $page <= $right; $page++) {
            $urls[$page] = $this->pageUrl($page, $full);
        }

        return $urls;
    }
public function allUrls(LengthAwarePaginator $paginator, $full = false)
    {
        if (! $paginator->hasPages()) {
            return [];
        }

        $urls = [];
        $left = $this->getLeftPoint($paginator);
        $right = $this->getRightPoint($paginator);
        for ($page = $left; $page <= $right; $page++) {
            $urls[$page] = $this->pageUrl($page, $full);
        }

        return $urls;
    }
public function allUrls ( LengthAwarePaginator $ paginator , $ full = false ) { if ( ! $ paginator -> hasPages ( ) ) { return [ ] ; } $ urls = [ ] ; $ left = $ this -> getLeftPoint ( $ paginator ) ; $ right = $ this -> getRightPoint ( $ paginator ) ; for ( $ page = $ left ; $ page <= $ right ; $ page ++ ) { $ urls [ $ page ] = $ this -> pageUrl ( $ page , $ full ) ; } return $ urls ; }
Get all urls in an array.

@param \Illuminate\Contracts\Pagination\LengthAwarePaginator $paginator
@param bool                                                  $full      Return the full version of the URL in for the first page
Ex. /users/page/1 instead of /users

@return array
Get all urls in an array .