Skip to content

Roles and Permissions

Domain model

Tenants, Users, Roles and Permissions

Version 5, from Spatie

To realize a Roles and Permission System we use the Package “Laravel-Permission” from Spatie. A detailed documentation can be found by following this link: https://spatie.be/docs/laravel-permission/v5/

Model/Class Import

Pay attention to use, src/Domain/Core/Models/Role.php
src/Domain/Core/Models/Permission.php
when imprting the models!

The reason why own models had to be created can be read here: https://spatie.be/docs/laravel-permission/v5/advanced-usage/testing