I am creating a stream which contains two types of objects, BluePerson and RedPerson. To create the stream, I fetch all of both objects, then merge them into one collection.
Try following.
$arr = $pets->toArray(); $paginator->make($arr, count($arr), $perPage);