[WIP] Refactor project

This commit is contained in:
Ludovic CANDELLIER
2021-05-21 00:21:05 +02:00
parent 4ce0fa942d
commit b50f50ea62
347 changed files with 14104 additions and 1608 deletions

View File

@@ -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',