Arkadaşlar Çözdüğümü sanıyordum ama sunucuya attıktan sonra sitemap'in kendini güncellemediğini gördüm bunun nedeni ne olabilir. ?
Sitemap 'im aşağıdaki gibidir.
Route::get('sitemap', function(){
// create new sitemap object
$sitemap = App::make("sitemap");
// set cache (key (string), duration in minutes (Carbon|Datetime|int), turn on/off (boolean))
// by default cache is disabled
$sitemap->setCache('laravel.sitemap', 3600);
// check if there is cached sitemap and build new only if is not
if (!$sitemap->isCached())
{
// add item to the sitemap (url, date, priority, freq)
$sitemap->add(URL::to('/'), '2014-11-03T20:10:00+02:00', '1.0', 'daily');
$sitemap->add(URL::to('iletisim'), '2014-11-03T12:30:00+02:00', '1.0', 'daily');
$sitemap->add(URL::to('hatabildir'), '2014-11-03T12:30:00+02:00', '1.0', 'daily');
$sitemap->add(URL::to('arama'), '2014-11-03T12:30:00+02:00', '1.0', 'daily');
$sitemap->add(URL::to('otoarama'), '2014-11-03T12:30:00+02:00', '1.0', 'daily');
$sitemap->add(URL::to('kisiarama'), '2014-11-03T12:30:00+02:00', '1.0', 'daily');
$sitemap->add(URL::to('ksarama'), '2014-11-03T12:30:00+02:00', '1.0', 'daily');
$sitemap->add(URL::to('sss'), '2014-11-03T12:30:00+02:00', '1.0', 'daily');
$sitemap->add(URL::to('login'), '2014-11-03T12:30:00+02:00', '1.0', 'daily');
$sitemap->add(URL::to('sss'), '2014-11-03T12:30:00+02:00', '1.0', 'daily');
$sitemap->add(URL::to('uyelik'), '2014-11-03T12:30:00+02:00', '1.0', 'daily');
$sitemap->add(URL::to('kkosullari'), '2014-11-03T12:30:00+02:00', '1.0', 'daily');
$sitemap->add(URL::to('password/remind'), '2014-11-03T12:30:00+02:00', '1.0', 'daily');
// get all posts from db
$posts = DB::table('ilanekle')->orderBy('created_at', 'desc')->get();
// add every post to the sitemap
foreach ($posts as $post)
{
$sitemap->add($post->slug, $post->ilanno, $post->ilanbaslik, $post->aciklama);
}
}
// show your sitemap (options: 'xml' (default), 'html', 'txt', 'ror-rss', 'ror-rdf')
return $sitemap->render('xml');
});