You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

users.php 5.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | User Repository
  6. |--------------------------------------------------------------------------
  7. |
  8. | Statamic uses a repository to get users, roles, groups, and their
  9. | relationships from specified storage locations. The file driver
  10. | gets it from disk, while the eloquent driver gets from a DB.
  11. |
  12. | Supported: "file", "eloquent"
  13. |
  14. */
  15. 'repository' => 'file',
  16. 'repositories' => [
  17. 'file' => [
  18. 'driver' => 'file',
  19. 'paths' => [
  20. 'roles' => resource_path('users/roles.yaml'),
  21. 'groups' => resource_path('users/groups.yaml'),
  22. ],
  23. ],
  24. 'eloquent' => [
  25. 'driver' => 'eloquent',
  26. ],
  27. ],
  28. /*
  29. |--------------------------------------------------------------------------
  30. | Avatars
  31. |--------------------------------------------------------------------------
  32. |
  33. | User avatars are initials by default, with custom options for services
  34. | like Gravatar.com.
  35. |
  36. | Supported: "initials", "gravatar", or a custom class name.
  37. |
  38. */
  39. 'avatars' => 'initials',
  40. /*
  41. |--------------------------------------------------------------------------
  42. | New User Roles
  43. |--------------------------------------------------------------------------
  44. |
  45. | When registering new users through the user:register_form tag, these
  46. | roles will automatically be applied to your newly created users.
  47. |
  48. */
  49. 'new_user_roles' => [
  50. //
  51. ],
  52. /*
  53. |--------------------------------------------------------------------------
  54. | New User Groups
  55. |--------------------------------------------------------------------------
  56. |
  57. | When registering new users through the user:register_form tag, these
  58. | groups will automatically be applied to your newly created users.
  59. |
  60. */
  61. 'new_user_groups' => [
  62. //
  63. ],
  64. /*
  65. |--------------------------------------------------------------------------
  66. | Registration form honeypot field
  67. |--------------------------------------------------------------------------
  68. |
  69. | When registering new users through the user:register_form tag,
  70. | specify the field to act as a honeypot for bots
  71. |
  72. */
  73. 'registration_form_honeypot_field' => null,
  74. /*
  75. |--------------------------------------------------------------------------
  76. | User Wizard Invitation Email
  77. |--------------------------------------------------------------------------
  78. |
  79. | When creating new users through the wizard in the control panel,
  80. | you may choose whether to be able to send an invitation email.
  81. | Setting to true will give the user the option. But setting
  82. | it to false will disable the invitation option entirely.
  83. |
  84. */
  85. 'wizard_invitation' => true,
  86. /*
  87. |--------------------------------------------------------------------------
  88. | Password Brokers
  89. |--------------------------------------------------------------------------
  90. |
  91. | When resetting passwords, Statamic uses an appropriate password broker.
  92. | Here you may define which broker should be used for each situation.
  93. | You may want a longer expiry for user activations, for example.
  94. |
  95. */
  96. 'passwords' => [
  97. 'resets' => 'users',
  98. 'activations' => 'activations',
  99. ],
  100. /*
  101. |--------------------------------------------------------------------------
  102. | Database
  103. |--------------------------------------------------------------------------
  104. |
  105. | Here you may configure the database connection and its table names.
  106. |
  107. */
  108. 'database' => config('database.default'),
  109. 'tables' => [
  110. 'users' => 'users',
  111. 'role_user' => 'role_user',
  112. 'roles' => false,
  113. 'group_user' => 'group_user',
  114. 'groups' => false,
  115. ],
  116. /*
  117. |--------------------------------------------------------------------------
  118. | Authentication Guards
  119. |--------------------------------------------------------------------------
  120. |
  121. | By default, Statamic will use the `web` authentication guard. However,
  122. | if you want to run Statamic alongside the default Laravel auth
  123. | guard, you can configure that for your cp and/or frontend.
  124. |
  125. */
  126. 'guards' => [
  127. 'cp' => 'web',
  128. 'web' => 'web',
  129. ],
  130. /*
  131. |--------------------------------------------------------------------------
  132. | Impersonation
  133. |--------------------------------------------------------------------------
  134. |
  135. | Here you can configure if impersonation is available, and what URL to
  136. | redirect to after impersonation begins.
  137. |
  138. */
  139. 'impersonate' => [
  140. 'enabled' => env('STATAMIC_IMPERSONATE_ENABLED', true),
  141. 'redirect' => env('STATAMIC_IMPERSONATE_REDIRECT', null),
  142. ],
  143. /*
  144. |--------------------------------------------------------------------------
  145. | Default Sorting
  146. |--------------------------------------------------------------------------
  147. |
  148. | Here you may configure the default sort behavior for user listings.
  149. |
  150. */
  151. 'sort_field' => 'email',
  152. 'sort_direction' => 'asc',
  153. ];