title: Problem with Laravel spatie/laravel-permissions ( HasRole in Model User )
body: <p>I have a problem with the spatie/laravel-permissions library.</p>
  <p>Previously I had it implemented in my system but after doing composer update it stopped working...</p>
  <p>The problem is when I add the HasRole in my User model. Everything crashes and I get the error:
  &quot;Call to a member function first() on array &quot;
  Making mention of the PermissionRegistrar package file.</p>
  <p>Likewise, if I try to enter another route in my system, the error that appears is &quot;
  Undefined index: name&quot;</p>
  <p>It should be noted that I have my model created, my tables in the database and I carry out the package installation process following the documentation, and as I said before, the roles and permissions system worked for me before.</p>
  <p>Something I should mention is that I had previously replaced the &quot;name&quot; field with &quot;description&quot; but I had some configuration problems with the library so I ran another migration adding the Name field, which the library requires. After running the migration, everything seemed to work correctly</p>