Method render() does not work after using the store() method
Hello,
I'm using the render() method after storing the xml file, using store(), and the rendered page is showing an empty xml. Using the default configs.
The xml file is being stored correctly, it has all the info it is supposed to have, but then the render() is failing.
Simple code example:
public function staticPages()
{
$sitemap = app()->make('sitemap');
$sitemap->add(url('about-us'), date('Y-m-d H:i:s'), '1.0', 'yearly');
$sitemap->store('xml', 'sitemap-static-pages');
return $sitemap->render('xml');
}
If i remove the store() than the render() works fine.
This code used to work with the with the previous package (https://github.com/RoumenDamianoff/laravel-sitemap).
Any suggestions?
Edited by Luís Gonçalves