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 recordspermissions
— stores permission recordsrole_user
— stores polymorphic relations between roles and userspermission_role
— stores many-to-many relations between roles and permissionspermission_user
— stores polymorphic relations between users and permissions