Commit f6046038 by Bagus Pambudi

add image rss

parent 6820ff46
...@@ -6,9 +6,10 @@ class RssFeedController extends Controller ...@@ -6,9 +6,10 @@ class RssFeedController extends Controller
{ {
public function feed() public function feed()
{ {
$setting = webprofilesetting();
$posts = Posts::where('post_status', 't')-> $posts = Posts::where('post_status', 't')->
orderBy('created_at', 'desc')-> orderBy('created_at', 'desc')->
limit(10)->get(); limit(10)->get();
return response()->view('rss.feed', compact('posts'))->header('Content-Type', 'application/xml'); return response()->view('rss.feed', compact('posts','setting'))->header('Content-Type', 'application/xml');
} }
} }
\ No newline at end of file
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