protected function generatePaginationData($resources)
    {
        $paginationData = [
            'total'             => $resources->total(),
            'per_page'          => $resources->perPage(),
            'current_page'      => $resources->currentPage(),
            'last_page'         => $resources->lastPage(),
            'previous_page_url' => $resources->previousPageUrl(),
            'next_page_url'     => $resources->nextPageUrl(),
            'from'              => $resources->firstItem(),
            'to'                => $resources->lastItem()
        ];

        return $paginationData;
    }
protected function generatePaginationData($resources)
    {
        $paginationData = [
            'total'             => $resources->total(),
            'per_page'          => $resources->perPage(),
            'current_page'      => $resources->currentPage(),
            'last_page'         => $resources->lastPage(),
            'previous_page_url' => $resources->previousPageUrl(),
            'next_page_url'     => $resources->nextPageUrl(),
            'from'              => $resources->firstItem(),
            'to'                => $resources->lastItem()
        ];

        return $paginationData;
    }
protected function generatePaginationData ( $ resources ) { $ paginationData = [ 'total' => $ resources -> total ( ) , 'per_page' => $ resources -> perPage ( ) , 'current_page' => $ resources -> currentPage ( ) , 'last_page' => $ resources -> lastPage ( ) , 'previous_page_url' => $ resources -> previousPageUrl ( ) , 'next_page_url' => $ resources -> nextPageUrl ( ) , 'from' => $ resources -> firstItem ( ) , 'to' => $ resources -> lastItem ( ) ] ; return $ paginationData ; }
Generate the pagination Data.

@param $resources
@return array
@internal param $resource
Generate the pagination Data .