exhibitions()->yaml(); // Add url based title to each exhibition foreach ($exhibitions as &$exhibition) { $exhibition['title'] = str_replace(['http://', 'https://', 'www.'], '', $exhibition['url']); } return [ 'exhibitions' => $exhibitions ]; };