I have a serive in root response xml daha as in image below:
Route::get('feed', function() {
$feed = App::make("feed");
$feed->setCache(60, 'feedNewsKey');
if (!$feed->isCached()) {
$news = \DB::table('news')->orderBy('created_at', 'desc')->take(20)->get();
foreach ($news as $post) {
$feed->add($post->title, 'asd', url('detail/' . $post->id), $post->created_at, $post->description, $post->description,['user_id'=>$post->id, 'photo'=>$post->photo]);
}
}
return $feed->render('atom');
});
I wonder how I can iterate in these xlm data in blade.php view file ?