admin.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | dcat-admin name
  6. |--------------------------------------------------------------------------
  7. |
  8. | This value is the name of dcat-admin, This setting is displayed on the
  9. | login page.
  10. |
  11. */
  12. 'name' => '集客仓APP后台',
  13. 'miniapp_url' => env('APP_URL'),
  14. /*
  15. |--------------------------------------------------------------------------
  16. | dcat-admin logo
  17. |--------------------------------------------------------------------------
  18. |
  19. | The logo of all admin pages. You can also set it as an image by using a
  20. | `img` tag, eg '<img src="http://logo-url" alt="Admin logo">'.
  21. |
  22. */
  23. 'logo' => '<img src="/vendor/dcat-admin/images/logo.png" width="35"> &nbsp;集客仓APP后台',
  24. 'multi_app' => [
  25. // 与新应用的配置文件名称一致
  26. // 设置为true启用,false则是停用
  27. 'fx-admin' => true,
  28. 'data-api' => true,
  29. 'data-api-new' => true,
  30. ],
  31. /*
  32. |--------------------------------------------------------------------------
  33. | dcat-admin mini logo
  34. |--------------------------------------------------------------------------
  35. |
  36. | The logo of all admin pages when the sidebar menu is collapsed. You can
  37. | also set it as an image by using a `img` tag, eg
  38. | '<img src="http://logo-url" alt="Admin logo">'.
  39. |
  40. */
  41. 'logo-mini' => '<img src="/vendor/dcat-admin/images/logo.png">',
  42. /*
  43. |--------------------------------------------------------------------------
  44. | dcat-admin favicon
  45. |--------------------------------------------------------------------------
  46. |
  47. */
  48. 'favicon' => null,
  49. /*
  50. |--------------------------------------------------------------------------
  51. | User default avatar
  52. |--------------------------------------------------------------------------
  53. |
  54. | Set a default avatar for newly created users.
  55. |
  56. */
  57. 'default_avatar' => '@admin/images/default-avatar.jpg',
  58. /*
  59. |--------------------------------------------------------------------------
  60. | dcat-admin route settings
  61. |--------------------------------------------------------------------------
  62. |
  63. | The routing configuration of the admin page, including the path prefix,
  64. | the controller namespace, and the default middleware. If you want to
  65. | access through the root path, just set the prefix to empty string.
  66. |
  67. */
  68. 'route' => [
  69. 'domain' => env('ADMIN_ROUTE_DOMAIN'),
  70. 'prefix' => env('ADMIN_ROUTE_PREFIX', 'aaaddd'),
  71. 'prefixd' => env('ADMIN_ROUTE_PREFIX', 'appauth'),
  72. 'prefixe' => env('ADMIN_ROUTE_PREFIX', ''),
  73. 'namespace' => 'App\\Admin\\Controllers',
  74. 'namespaced' => 'App\\Admin\\Http\\Controllers',
  75. 'middleware' => ['web', 'admin'],
  76. 'middlewared' => ['app'],
  77. 'enable_session_middleware' => false,
  78. ],
  79. /*
  80. |--------------------------------------------------------------------------
  81. | dcat-admin install directory
  82. |--------------------------------------------------------------------------
  83. |
  84. | The installation directory of the controller and routing configuration
  85. | files of the administration page. The default is `app/Admin`, which must
  86. | be set before running `artisan admin::install` to take effect.
  87. |
  88. */
  89. 'directory' => app_path('Admin'),
  90. /*
  91. |--------------------------------------------------------------------------
  92. | dcat-admin html title
  93. |--------------------------------------------------------------------------
  94. |
  95. | Html title for all pages.
  96. |
  97. */
  98. 'title' => '集客仓APP后台',
  99. /*
  100. |--------------------------------------------------------------------------
  101. | Assets hostname
  102. |--------------------------------------------------------------------------
  103. |
  104. */
  105. 'assets_server' => env('ADMIN_ASSETS_SERVER'),
  106. /*
  107. |--------------------------------------------------------------------------
  108. | Access via `https`
  109. |--------------------------------------------------------------------------
  110. |
  111. | If your page is going to be accessed via https, set it to `true`.
  112. |
  113. */
  114. 'https' => env('ADMIN_HTTPS', true),
  115. /*
  116. |--------------------------------------------------------------------------
  117. | dcat-admin auth setting
  118. |--------------------------------------------------------------------------
  119. |
  120. | Authentication settings for all admin pages. Include an authentication
  121. | guard and a user provider setting of authentication driver.
  122. |
  123. | You can specify a controller for `login` `logout` and other auth routes.
  124. |
  125. */
  126. 'auth' => [
  127. 'enable' => true,
  128. 'controller' => App\Admin\Controllers\AuthController::class,
  129. 'guard' => 'admin',
  130. 'guards' => [
  131. 'admin' => [
  132. 'driver' => 'session',
  133. 'provider' => 'admin',
  134. ],
  135. ],
  136. 'providers' => [
  137. 'admin' => [
  138. 'driver' => 'eloquent',
  139. 'model' => Dcat\Admin\Models\Administrator::class,
  140. ],
  141. ],
  142. // Add "remember me" to login form
  143. 'remember' => true,
  144. // All method to path like: auth/users/*/edit
  145. // or specific method to path like: get:auth/users.
  146. 'except' => [
  147. 'auth/login',
  148. 'auth/logout',
  149. ],
  150. 'enable_session_middleware' => false,
  151. ],
  152. /*
  153. |--------------------------------------------------------------------------
  154. | The global Grid setting
  155. |--------------------------------------------------------------------------
  156. */
  157. 'grid' => [
  158. // The global Grid action display class.
  159. 'grid_action_class' => Dcat\Admin\Grid\Displayers\DropdownActions::class,
  160. // The global Grid batch action display class.
  161. 'batch_action_class' => Dcat\Admin\Grid\Tools\BatchActions::class,
  162. // The global Grid pagination display class.
  163. 'paginator_class' => Dcat\Admin\Grid\Tools\Paginator::class,
  164. 'actions' => [
  165. 'view' => Dcat\Admin\Grid\Actions\Show::class,
  166. 'edit' => Dcat\Admin\Grid\Actions\Edit::class,
  167. 'quick_edit' => Dcat\Admin\Grid\Actions\QuickEdit::class,
  168. 'delete' => Dcat\Admin\Grid\Actions\Delete::class,
  169. 'batch_delete' => Dcat\Admin\Grid\Tools\BatchDelete::class,
  170. ],
  171. // The global Grid column selector setting.
  172. 'column_selector' => [
  173. 'store' => Dcat\Admin\Grid\ColumnSelector\SessionStore::class,
  174. 'store_params' => [
  175. 'driver' => 'file',
  176. ],
  177. ],
  178. ],
  179. /*
  180. |--------------------------------------------------------------------------
  181. | dcat-admin helpers setting.
  182. |--------------------------------------------------------------------------
  183. */
  184. 'helpers' => [
  185. 'enable' => true,
  186. ],
  187. /*
  188. |--------------------------------------------------------------------------
  189. | dcat-admin permission setting
  190. |--------------------------------------------------------------------------
  191. |
  192. | Permission settings for all admin pages.
  193. |
  194. */
  195. 'permission' => [
  196. // Whether enable permission.
  197. 'enable' => true,
  198. // All method to path like: auth/users/*/edit
  199. // or specific method to path like: get:auth/users.
  200. 'except' => [
  201. '/',
  202. 'auth/login',
  203. 'auth/logout',
  204. 'auth/setting',
  205. ],
  206. ],
  207. /*
  208. |--------------------------------------------------------------------------
  209. | dcat-admin menu setting
  210. |--------------------------------------------------------------------------
  211. |
  212. */
  213. 'menu' => [
  214. 'cache' => [
  215. // enable cache or not
  216. 'enable' => false,
  217. 'store' => 'file',
  218. ],
  219. // Whether enable menu bind to a permission.
  220. 'bind_permission' => true,
  221. // Whether enable role bind to menu.
  222. 'role_bind_menu' => true,
  223. // Whether enable permission bind to menu.
  224. 'permission_bind_menu' => true,
  225. 'default_icon' => 'feather icon-circle',
  226. ],
  227. /*
  228. |--------------------------------------------------------------------------
  229. | dcat-admin upload setting
  230. |--------------------------------------------------------------------------
  231. |
  232. | File system configuration for form upload files and images, including
  233. | disk and upload path.
  234. |
  235. */
  236. 'upload' => [
  237. // Disk in `config/filesystem.php`.
  238. 'disk' => 'public', //public
  239. // Image and file upload path under the disk above.
  240. 'directory' => [
  241. 'image' => 'images',
  242. 'file' => 'files',
  243. ],
  244. ],
  245. /*
  246. |--------------------------------------------------------------------------
  247. | dcat-admin database settings
  248. |--------------------------------------------------------------------------
  249. |
  250. | Here are database settings for dcat-admin builtin model & tables.
  251. |
  252. */
  253. 'database' => [
  254. // Database connection for following tables.
  255. 'connection' => '',
  256. // User tables and model.
  257. 'users_table' => 'admin_users',
  258. 'users_model' => Dcat\Admin\Models\Administrator::class,
  259. // Role table and model.
  260. 'roles_table' => 'admin_roles',
  261. 'roles_model' => Dcat\Admin\Models\Role::class,
  262. // Permission table and model.
  263. 'permissions_table' => 'admin_permissions',
  264. 'permissions_model' => Dcat\Admin\Models\Permission::class,
  265. // Menu table and model.
  266. 'menu_table' => 'admin_menu',
  267. 'menu_model' => Dcat\Admin\Models\Menu::class,
  268. // Pivot table for table above.
  269. 'role_users_table' => 'admin_role_users',
  270. 'role_permissions_table' => 'admin_role_permissions',
  271. 'role_menu_table' => 'admin_role_menu',
  272. 'permission_menu_table' => 'admin_permission_menu',
  273. 'settings_table' => 'admin_settings',
  274. 'extensions_table' => 'admin_extensions',
  275. 'extension_histories_table' => 'admin_extension_histories',
  276. ],
  277. /*
  278. |--------------------------------------------------------------------------
  279. | Application layout
  280. |--------------------------------------------------------------------------
  281. |
  282. | This value is the layout of admin pages.
  283. */
  284. 'layout' => [
  285. // default, blue, blue-light, green
  286. 'color' => 'default',
  287. // sidebar-separate
  288. 'body_class' => [],
  289. 'horizontal_menu' => false,
  290. 'sidebar_collapsed' => false,
  291. // light, primary, dark
  292. 'sidebar_style' => 'light',
  293. 'dark_mode_switch' => true,
  294. // bg-primary, bg-info, bg-warning, bg-success, bg-danger, bg-dark
  295. 'navbar_color' => '',
  296. ],
  297. /*
  298. |--------------------------------------------------------------------------
  299. | The exception handler class
  300. |--------------------------------------------------------------------------
  301. |
  302. */
  303. 'exception_handler' => Dcat\Admin\Exception\Handler::class,
  304. /*
  305. |--------------------------------------------------------------------------
  306. | Enable default breadcrumb
  307. |--------------------------------------------------------------------------
  308. |
  309. | Whether enable default breadcrumb for every page content.
  310. */
  311. 'enable_default_breadcrumb' => true,
  312. /*
  313. |--------------------------------------------------------------------------
  314. | Extension
  315. |--------------------------------------------------------------------------
  316. */
  317. 'extension' => [
  318. // When you use command `php artisan admin:ext-make` to generate extensions,
  319. // the extension files will be generated in this directory.
  320. 'dir' => base_path('dcat-admin-extensions'),
  321. ],
  322. ];