public function page(Request $request, Application $app, Paginator $paginator)
    {
        return array_merge(
            ['pages' => count($paginator)],
            $this->extractViewParameters($request, ['app', 'paginator'])
        );
    }
public function page(Request $request, Application $app, Paginator $paginator)
    {
        return array_merge(
            ['pages' => count($paginator)],
            $this->extractViewParameters($request, ['app', 'paginator'])
        );
    }
public function page ( Request $ request , Application $ app , Paginator $ paginator ) { return array_merge ( [ 'pages' => count ( $ paginator ) ] , $ this -> extractViewParameters ( $ request , [ 'app' , 'paginator' ] ) ) ; }
Paginated list of contents

@param Request $request
@param Application $app
@param Paginator $paginator

@return array
Paginated list of contents