src/Watson/Sitemap/Sitemap.php
public function render()
    {
        if ($cachedView = $this->getCachedView()) {
            return response()->make($cachedView, 200, ['Content-type' => 'text/xml']);
        }

        $sitemap = response()->view('sitemap::sitemap', [
            '__tags' => $this->getTags(),
            '__hasImages' => $this->imagesPresent(),
            '__hasVideos' => $this->videosPresent(),
            '__isMultilingual' => $this->multilingualTagsPresent()
        ], 200, ['Content-type' => 'text/xml']);

        $this->saveCachedView($sitemap);

        return $sitemap;
    }
public function render()
    {
        if ($cachedView = $this->getCachedView()) {
            return response()->make($cachedView, 200, ['Content-type' => 'text/xml']);
        }

        $sitemap = response()->view('sitemap::sitemap', [
            '__tags' => $this->getTags(),
            '__hasImages' => $this->imagesPresent(),
            '__hasVideos' => $this->videosPresent(),
            '__isMultilingual' => $this->multilingualTagsPresent()
        ], 200, ['Content-type' => 'text/xml']);

        $this->saveCachedView($sitemap);

        return $sitemap;
    }
public function render ( ) { if ( $ cachedView = $ this -> getCachedView ( ) ) { return response ( ) -> make ( $ cachedView , 200 , [ 'Content-type' => 'text/xml' ] ) ; } $ sitemap = response ( ) -> view ( 'sitemap::sitemap' , [ '__tags' => $ this -> getTags ( ) , '__hasImages' => $ this -> imagesPresent ( ) , '__hasVideos' => $ this -> videosPresent ( ) , '__isMultilingual' => $ this -> multilingualTagsPresent ( ) ] , 200 , [ 'Content-type' => 'text/xml' ] ) ; $ this -> saveCachedView ( $ sitemap ) ; return $ sitemap ; }
Render a sitemap.

@return \Illuminate\Http\Response
Render a sitemap .