/**
  * Feed function
  */
 public function feed()
 {
     $topics = Topic::excellent()->recent()->limit(20)->get();
     $channel = ['title' => 'PHPhub - PHP & Laravel的中文社区', 'description' => 'PHPhub是 PHP 和 Laravel 的中文社区,在这里我们讨论技术, 分享技术。', 'link' => URL::route('feed')];
     $feed = Rss::feed('2.0', 'UTF-8');
     $feed->channel($channel);
     foreach ($topics as $topic) {
         $feed->item(['title' => $topic->title, 'description|cdata' => str_limit($topic->body, 200), 'link' => URL::route('topics.show', $topic->id), 'pubDate' => date('Y-m-d', strtotime($topic->created_at))]);
     }
     return Response::make($feed, 200, array('Content-Type' => 'text/xml'));
 }