$pages->merge($collection2)
Returns a new combined collection
-
$collection2 ($pages)
The second $pages collection -
return ($pages)
Example:
<?php
$collection1 = page('exhibitions')->children()->visible();
$collection2 = page('news')->children()->visible();
$newCollection = $collection1->merge($collection2);
?>