text4u
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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. | User Wizard Invitation Email
  67. |--------------------------------------------------------------------------
  68. |
  69. | When creating new users through the wizard in the control panel,
  70. | you may choose whether to be able to send an invitation email.
  71. | Setting to true will give the user the option. But setting
  72. | it to false will disable the invitation option entirely.
  73. |
  74. */
  75. 'wizard_invitation' => true,
  76. /*
  77. |--------------------------------------------------------------------------
  78. | Password Brokers
  79. |--------------------------------------------------------------------------
  80. |
  81. | When resetting passwords, Statamic uses an appropriate password broker.
  82. | Here you may define which broker should be used for each situation.
  83. | You may want a longer expiry for user activations, for example.
  84. |
  85. */
  86. 'passwords' => [
  87. 'resets' => 'resets',
  88. 'activations' => 'activations',
  89. ],
  90. /*
  91. |--------------------------------------------------------------------------
  92. | Database
  93. |--------------------------------------------------------------------------
  94. |
  95. | Here you may configure the database connection and its table names.
  96. |
  97. */
  98. 'database' => config('database.default'),
  99. 'tables' => [
  100. 'users' => 'users',
  101. 'role_user' => 'role_user',
  102. 'group_user' => 'group_user',
  103. ],
  104. /*
  105. |--------------------------------------------------------------------------
  106. | Authentication Guards
  107. |--------------------------------------------------------------------------
  108. |
  109. | By default, Statamic will use the `web` authentication guard. However,
  110. | if you want to run Statamic alongside the default Laravel auth
  111. | guard, you can configure that for your cp and/or frontend.
  112. |
  113. */
  114. 'guards' => [
  115. 'cp' => 'web',
  116. 'web' => 'web',
  117. ],
  118. /*
  119. |--------------------------------------------------------------------------
  120. | Impersonation
  121. |--------------------------------------------------------------------------
  122. |
  123. | Here you can configure if impersonation is available, and what URL to
  124. | redirect to after impersonation begins.
  125. |
  126. */
  127. 'impersonate' => [
  128. 'enabled' => env('STATAMIC_IMPERSONATE_ENABLED', true),
  129. 'redirect' => env('STATAMIC_IMPERSONATE_REDIRECT', null),
  130. ],
  131. /*
  132. |--------------------------------------------------------------------------
  133. | Default Sorting
  134. |--------------------------------------------------------------------------
  135. |
  136. | Here you may configure the default sort behavior for user listings.
  137. |
  138. */
  139. 'sort_field' => 'email',
  140. 'sort_direction' => 'asc',
  141. ];