/**
  * Build the specified type of feed (ATOM or RSS).
  *
  * @param  string $type
  * @return \Response
  */
 private function buildFeed($type)
 {
     $data['tricks'] = $this->tricks->findForFeed();
     $contentType = $this->getContentType($type);
     return Response::view("feeds.{$type}", $data, 200, ['Content-Type' => $contentType . '; charset=UTF-8']);
 }
 /**
  * Gather the feed data to render.
  *
  * @return array
  */
 protected function getFeedData()
 {
     $data['tricks'] = $this->tricks->findForFeed();
     return $data;
 }