public function getFormatted($space = 4) { $bundles = ''; foreach ($this->collection as $bundle) { $bundles .= $bundle->get() . ",\n" . str_repeat(' ', $space); } return trim($bundles); }