public function transformPaginator(LengthAwarePaginator $paginator)
    {
        if (!$this->hasTransformer()) {
            return $paginator;
        }

        $items = $this->transform($paginator->items())->toArray();

        return new LengthAwarePaginator($items, $paginator->total(), $paginator->perPage(), $paginator->currentPage());
    }
public function transformPaginator(LengthAwarePaginator $paginator)
    {
        if (!$this->hasTransformer()) {
            return $paginator;
        }

        $items = $this->transform($paginator->items())->toArray();

        return new LengthAwarePaginator($items, $paginator->total(), $paginator->perPage(), $paginator->currentPage());
    }
public function transformPaginator ( LengthAwarePaginator $ paginator ) { if ( ! $ this -> hasTransformer ( ) ) { return $ paginator ; } $ items = $ this -> transform ( $ paginator -> items ( ) ) -> toArray ( ) ; return new LengthAwarePaginator ( $ items , $ paginator -> total ( ) , $ paginator -> perPage ( ) , $ paginator -> currentPage ( ) ) ; }
Execute transform method on paginator items with specified transformer.

@param LengthAwarePaginator $paginator

@return LengthAwarePaginator
Execute transform method on paginator items with specified transformer .