src/Pagination/PaginatorField.php
public function paginatorInfoResolver(LengthAwarePaginator $root): array
    {
        return [
            'count' => $root->count(),
            'currentPage' => $root->currentPage(),
            'firstItem' => $root->firstItem(),
            'hasMorePages' => $root->hasMorePages(),
            'lastItem' => $root->lastItem(),
            'lastPage' => $root->lastPage(),
            'perPage' => $root->perPage(),
            'total' => $root->total(),
        ];
    }
public function paginatorInfoResolver(LengthAwarePaginator $root): array
    {
        return [
            'count' => $root->count(),
            'currentPage' => $root->currentPage(),
            'firstItem' => $root->firstItem(),
            'hasMorePages' => $root->hasMorePages(),
            'lastItem' => $root->lastItem(),
            'lastPage' => $root->lastPage(),
            'perPage' => $root->perPage(),
            'total' => $root->total(),
        ];
    }
public function paginatorInfoResolver ( LengthAwarePaginator $ root ) : array { return [ 'count' => $ root -> count ( ) , 'currentPage' => $ root -> currentPage ( ) , 'firstItem' => $ root -> firstItem ( ) , 'hasMorePages' => $ root -> hasMorePages ( ) , 'lastItem' => $ root -> lastItem ( ) , 'lastPage' => $ root -> lastPage ( ) , 'perPage' => $ root -> perPage ( ) , 'total' => $ root -> total ( ) , ] ; }
Resolve paginator info for connection.

@param  \Illuminate\Contracts\Pagination\LengthAwarePaginator  $root
@return array
Resolve paginator info for connection .