protected function paginationInformation($request)
    {
        $paginated = $this->resource->resource->toArray();

        return [
            'links' => $this->paginationLinks($paginated),
            'meta' => $this->meta($paginated),
        ];
    }
protected function paginationInformation($request)
    {
        $paginated = $this->resource->resource->toArray();

        return [
            'links' => $this->paginationLinks($paginated),
            'meta' => $this->meta($paginated),
        ];
    }
protected function paginationInformation ( $ request ) { $ paginated = $ this -> resource -> resource -> toArray ( ) ; return [ 'links' => $ this -> paginationLinks ( $ paginated ) , 'meta' => $ this -> meta ( $ paginated ) , ] ; }
Add the pagination information to the response.

@param  \Illuminate\Http\Request  $request
@return array
Add the pagination information to the response .