Daalder uses role/permission pattern for access-role management. Under the hood, we implemented a
spatie/laravel-permission library, ensuring that your user privileges will stay safe and well kept.
Roles and permissions are user-specific, which means that regardless of your specific needs, one user has a same set of roles/permissions on every store you implemented within one Daalder application.
During the installation and set up of the Daalder application, a number of built-in roles and permissions will be mounted.
A fresh Daalder application has two built-in roles:
Pionect\Backoffice\Models\User\RoleScopes for further reference on default roles.
Beside roles, the fresh Daalder application sets up a number of permissions. Their basic definitions can be found in the
These permissions cover most of the Daalder features, and are written using the following pattern:
const STORE_DISCOUNT = 'store-discount';
The above example defines the permission to store/update a discount model.