title: Filter, Sort and Paginate after Fractal Transform
body: <p>I'm using <strong>Fractal transformer</strong> in <strong>Laravel 5.6</strong></p>
  
  <p>I have a News Model and User Model. News model has a foreign key user_id. when I want to show list of News I transform the data like below:</p>
  
  <pre><code>public function transform(News $news)
  {
      return [
          'identifier' =&gt; (int) $news-&gt;id,
          'title' =&gt; (string) $news-&gt;title,
          'content' =&gt; (string) $news-&gt;content,
          'user' =&gt; (String) $news-&gt;user-&gt;f_name . " " . $news-&gt;user-&gt;l_name,
          'userType' =&gt; (String) $news-&gt;user-&gt;user_type,
          'likeCount' =&gt; (int) $news-&gt;likes,
      ];
  }
  </code></pre>
  
  <p>And transform function is:</p>
  
  <pre><code>protected function transformData($data, NewsTransformer $transformer) {
      $transformation = fractal($data, new $transformer);
      return $transformation-&gt;toArray();
  }
  </code></pre>
  
  <p>Now the problem is that when I transform the list of news it returns array instead of collection and after transformation I cant use operations like filtering the data by userType or sorting the data by user.</p>
  
  <p>So how can I sort, filter and paginate the results by new fields after transformation?</p>