renderFeed(); $baseRender['/index.xml'] = [ 'output' => $output, 'validation' => null, ]; dd($baseRender['/index.xml']['validation']); $baseRender += parent::render(); return $baseRender; } /** * Return a boolean value indicating if this creator in particular can * create bundles for specified section */ public static function handles(Bundle $bundle): bool { return $bundle->getPath() === '/'; } private function renderFeed() { $bundles = $this->getSubBundles(); $lastBundles = array_map( function ($item) { $bundle = new Bundle($item, $this->bundle->getDisk()); $bundle->load(); return $bundle; }, array_slice($bundles, 0, 10) ); $lastBundle = collect($lastBundles)->first(); return (string) view('feed', [ 'bundles' => $lastBundles, 'lastBuildDate' => now()->toRssString(), ]); } }