laratrust_seeder.php 843 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. return [
  3. /**
  4. * Control if the seeder should create a user per role while seeding the data.
  5. */
  6. 'create_users' => false,
  7. /**
  8. * Control if all the laratrust tables should be truncated before running the seeder.
  9. */
  10. 'truncate_tables' => true,
  11. 'roles_structure' => [
  12. 'superadministrator' => [
  13. 'users' => 'c,r,u,d',
  14. 'payments' => 'c,r,u,d',
  15. 'profile' => 'r,u'
  16. ],
  17. 'administrator' => [
  18. 'users' => 'c,r,u,d',
  19. 'profile' => 'r,u'
  20. ],
  21. 'user' => [
  22. 'profile' => 'r,u',
  23. ],
  24. 'role_name' => [
  25. 'module_1_name' => 'c,r,u,d',
  26. ]
  27. ],
  28. 'permissions_map' => [
  29. 'c' => 'create',
  30. 'r' => 'read',
  31. 'u' => 'update',
  32. 'd' => 'delete'
  33. ]
  34. ];