title: BadMethodCallException Call to undefined method App\Models\User::hasAnyRole()
body: <p>I'm using Laravel-Permissions and wrote in rotes\web.php:</p>
  <pre><code>Route::group(['middleware' =&gt; ['role:admin']], function () {
      Route::get('/admin', function () {
          return &quot;Test&quot;;
      });
  });
  </code></pre>
  <p>I added in app\Http\Kernel.php :</p>
  <pre><code>protected $routeMiddleware = [
      // ...
      'role' =&gt; \Spatie\Permission\Middlewares\RoleMiddleware::class,
      'permission' =&gt; \Spatie\Permission\Middlewares\PermissionMiddleware::class,
      'role_or_permission' =&gt; \Spatie\Permission\Middlewares\RoleOrPermissionMiddleware::class,
  ];
  </code></pre>
  <p>Error:</p>
  <p><a href="https://i.stack.imgur.com/Nc5WH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Nc5WH.png" alt="enter image description here" /></a></p>