public static function make(array $items, $total, $perPage = 15, $pageName = 'page', $page = null)
    {
        if (is_null($page)) {
            $page = static::resolveCurrentPage($pageName);
        }

        $path = static::resolveCurrentPath($pageName);

        return new static($items, $total, $perPage, $page, compact('path', 'pageName'));
    }
public static function make(array $items, $total, $perPage = 15, $pageName = 'page', $page = null)
    {
        if (is_null($page)) {
            $page = static::resolveCurrentPage($pageName);
        }

        $path = static::resolveCurrentPath($pageName);

        return new static($items, $total, $perPage, $page, compact('path', 'pageName'));
    }
public static function make ( array $ items , $ total , $ perPage = 15 , $ pageName = 'page' , $ page = null ) { if ( is_null ( $ page ) ) { $ page = static :: resolveCurrentPage ( $ pageName ) ; } $ path = static :: resolveCurrentPath ( $ pageName ) ; return new static ( $ items , $ total , $ perPage , $ page , compact ( 'path' , 'pageName' ) ) ; }
Create and return a new Paginator instance.

@param  int  $page
@return bool
Create and return a new Paginator instance .