Commit 0a117c88 by Bagus Pambudi

add image rss

parent 1fff236e
......@@ -8,7 +8,7 @@ class RssFeedController extends Controller
{
$setting = webprofilesetting();
$posts = Posts::where('post_status', 't')->
orderBy('created_at', 'desc')->
orderBy('post_date', 'desc')->
limit(1)->get();
return response()->view('rss.feed', compact('posts','setting'))->header('Content-Type', 'application/xml');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment