[WIP] Refactor project
This commit is contained in:
@@ -1,10 +1,20 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'role_structure' => [
|
||||
/**
|
||||
* Control if the seeder should create a user per role while seeding the data.
|
||||
*/
|
||||
'create_users' => false,
|
||||
|
||||
/**
|
||||
* Control if all the laratrust tables should be truncated before running the seeder.
|
||||
*/
|
||||
'truncate_tables' => true,
|
||||
|
||||
'roles_structure' => [
|
||||
'superadministrator' => [
|
||||
'users' => 'c,r,u,d',
|
||||
'acl' => 'c,r,u,d',
|
||||
'payments' => 'c,r,u,d',
|
||||
'profile' => 'r,u'
|
||||
],
|
||||
'administrator' => [
|
||||
@@ -12,14 +22,13 @@ return [
|
||||
'profile' => 'r,u'
|
||||
],
|
||||
'user' => [
|
||||
'profile' => 'r,u'
|
||||
],
|
||||
],
|
||||
'permission_structure' => [
|
||||
'cru_user' => [
|
||||
'profile' => 'c,r,u'
|
||||
'profile' => 'r,u',
|
||||
],
|
||||
'role_name' => [
|
||||
'module_1_name' => 'c,r,u,d',
|
||||
]
|
||||
],
|
||||
|
||||
'permissions_map' => [
|
||||
'c' => 'create',
|
||||
'r' => 'read',
|
||||
|
||||
Reference in New Issue
Block a user