{!! '<' . '?' . 'xml version="1.0" encoding="UTF-8"' !!} My Site http://example.com/ Thu, 28 May 2009 16:06:40 +0000 1 http://wordpress.org/?v=2.7.1 en 1.0 http://example.com/ http://example.com/ @for ($i = 1; $i <= $data['finishPage']; $i++) @php $key_cache = Cache::get($data['key'].$i); $step = (strtotime($data['start_date']) - strtotime($data['end_date'])) / ($data['finishPage'] * 20); $timestamp = range(strtotime($data['start_date']), strtotime($data['end_date']), $step); @endphp @foreach ($key_cache as $key => $item) @php $pubDate = date( 'D, d M Y H:i:s', $timestamp[$key] )." +0000"; $postDate = date( 'Y-m-d H:i:s', $timestamp[$key] ); $title = do_template( $templates->find($data['template'])->title, $item ); $content = do_template( $templates->find($data['template'])->content, $item ); $rand_id = rand(1000,10000); $slug = \Str::slug($title); @endphp <![CDATA[{{ $title }}]]> {{ $pubDate }} _byline Admin http://example.com/?p={{ $rand_id }} {{ $rand_id }} {{ $postDate }} {{ $postDate }} open closed {{ $slug }} publish 0 0 post _old_id {{ $rand_id }} @endforeach @endfor