title: Laravel-permission Undefined type PermissionRegistrar
body: <p>I'm trying to install the package Laravel-permission v5 for a project in Laravel 8.</p>
  <p>Following the instructions at the <a href="https://spatie.be/docs/laravel-permission/v5/installation-laravel" rel="nofollow noreferrer">documentation</a>, I runned</p>
  <pre><code>composer require spatie/laravel-permission
  </code></pre>
  <p>and to be able to migrate the permission tables I executed:</p>
  <pre><code>php artisan vendor:publish --provider=&quot;Spatie\Permission\PermissionServiceProvider&quot;
  </code></pre>
  <p>Instantly, in the file database/migrations/create_permission_tables.php it gives me the error</p>
  <p><code>Undefined type 'Spatie\Permission\PermissionRegistrar</code></p>
  <p>What can I do? I'm new in Laravel</p>