LengthAwarePaginator::resolveCurrentPath(), 'pageName' => $pageName, ]; return new LengthAwarePaginator( $this->forPage($page, $perPage), $total ?: $this->count(), $perPage, $page, $options ); }); } }