Inheritance: ContentCollection > DataCollection > Illuminate\Support\Collection


A PageCollection is used to hold a collection of Page objects.

The examples on this page use simple values to make things easier to understand.

Creating a Collection

You can create a PageCollection in a similar fashion to a ContentCollection or a regular collection.

$collection = collect_pages([1, 2, 3]);

Available Methods

This class currently has no additional methods.

Import using:

use Statamic\Data\Pages\PagesCollection