title: Error Acl/Laravel in Laravel 5.1
body: <p>I am having trouble creating user roles and permissions in my system.</p>
  
  <p>I'm using Package acl / laravel, and documentation describes the stages. I wrote the following code UserController before the Get User Roles:</p>
  
  <p>Documentation: <a href="https://github.com/kodeine/laravel-acl/wiki/Create-Roles" rel="nofollow">https://github.com/kodeine/laravel-acl/wiki/Create-Roles</a></p>
  
  <pre><code>$users = User::all();
  $users-&gt;getRoles();
  return view('users.index', compact ('users'));
  </code></pre>
  
  <p>Error:</p>
  
  <blockquote>
    <p>BadMethodCallException in Macroable.php line 81:<br>
    Method getRoles does not exist.</p>
  </blockquote>
  
  <p>What is going wrong, and how can I fix it?</p>