title: How to filter Laravel 5 eloquent query using entrust
body: <p>I have an app made in Laravel 5 using the entrust package:</p>
  
  <p><a href="https://github.com/Zizaco/entrust/tree/laravel-5" rel="nofollow">https://github.com/Zizaco/entrust/tree/laravel-5</a></p>
  
  <p>I have a query that already runs fine that gets paginated users that match a search string like so:</p>
  
  <pre><code>User::like($search)-&gt;skip($offset)-&gt;take($limit)-&gt;get()
  </code></pre>
  
  <p>With entrust I have a role called admin so how would I adapt this query so it only returns users that have the role admin. This didnt work:</p>
  
  <pre><code>User::like($search)-&gt;hasRole('admin)-&gt;skip($offset)-&gt;take($limit)-&gt;get()
  </code></pre>