Migrations

Now generate the Laratrust migration:

php artisan laratrust:migration

It will generate the <timestamp>_laratrust_setup_tables.php migration. You may now run it with the artisan migrate command:

php artisan migrate

After the migration, five new tables will be present:

  • roles — stores role records
  • permissions — stores permission records
  • role_user — stores polymorphic relations between roles and users
  • permission_role — stores many-to-many relations between roles and permissions
  • permission_user — stores polymorphic relations between users and permissions