If you are using UUIDs, see the Advanced section of the docs on UUID steps, before you continue. It explains some changes you may want to make to the migrations and config file before continuing. It also mentions important considerations after extending this package's models for UUID capability.
and (optional) you may set team_foreign_key name in the config file if you want to use a custom foreign key in your database for teams
If you are using MySQL 8, look at the migration files for notes about MySQL 8 to set/limit the index key length, and edit accordingly. If you get ERROR: 1071 Specified key was too long then you need to do this.
Clear your config cache. This package requires access to the permission config settings in order to run migrations. If you've been caching configurations locally, clear your config cache with either of these commands:
php artisan optimize:clear
# or
php artisan config:clear
Run the migrations: After the config and migration have been published and configured, you can create the tables for this package by running:
php artisan migrate
Add the necessary trait to your User model:
// The User model requires this trait
use HasRoles;
Consult the Basic Usage section of the docs to get started using the features of this package.