Commit a643cd62 by Triyah Fatmawati

fix rss

parent 5b99278e
...@@ -11,7 +11,6 @@ class RssFeedNewController extends Controller ...@@ -11,7 +11,6 @@ class RssFeedNewController extends Controller
// orderBy('post_date', 'desc')-> // orderBy('post_date', 'desc')->
// limit(10)->get(); // limit(10)->get();
$posts = Posts::orderBy('created_at')->get(); $posts = Posts::orderBy('created_at')->get();
dd($setting, $posts);
$data = response()->view('rss.feed', compact('posts','setting'))->header('Content-Type', 'application/xml'); $data = response()->view('rss.feed', compact('posts','setting'))->header('Content-Type', 'application/xml');
return strip_tags($data); return strip_tags($data);
} }
......
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