链街Dcat后台
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.

394 lines
12 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  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' => '链街后台管理系统',
  13. /*
  14. |--------------------------------------------------------------------------
  15. | dcat-admin logo
  16. |--------------------------------------------------------------------------
  17. |
  18. | The logo of all admin pages. You can also set it as an image by using a
  19. | `img` tag, eg '<img src="http://logo-url" alt="Admin logo">'.
  20. |
  21. */
  22. // 'logo' => '<img src="/vendors/dcat-admin/images/logo.png" width="35"> &nbsp;链街',
  23. 'logo' => '<img src="/vendors/dcat-admin/images/logo-head.png" width="35"> &nbsp;<span style="color:#c10002;vertical-align:bottom;"> 链街 </span>',
  24. /*
  25. |--------------------------------------------------------------------------
  26. | dcat-admin mini logo
  27. |--------------------------------------------------------------------------
  28. |
  29. | The logo of all admin pages when the sidebar menu is collapsed. You can
  30. | also set it as an image by using a `img` tag, eg
  31. | '<img src="http://logo-url" alt="Admin logo">'.
  32. |
  33. */
  34. 'logo-mini' => '<img src="/vendors/dcat-admin/images/logo.png">',
  35. /*
  36. |--------------------------------------------------------------------------
  37. | User default avatar
  38. |--------------------------------------------------------------------------
  39. |
  40. | Set a default avatar for newly created users.
  41. |
  42. */
  43. 'default_avatar' => '@admin/images/default-avatar.jpg',
  44. /*
  45. |--------------------------------------------------------------------------
  46. | dcat-admin route settings
  47. |--------------------------------------------------------------------------
  48. |
  49. | The routing configuration of the admin page, including the path prefix,
  50. | the controller namespace, and the default middleware. If you want to
  51. | access through the root path, just set the prefix to empty string.
  52. |
  53. */
  54. 'route' => [
  55. 'prefix' => env('ADMIN_ROUTE_PREFIX', 'admin'),
  56. 'namespace' => 'App\\Admin\\Controllers',
  57. 'middleware' => ['web', 'admin'],
  58. ],
  59. /*
  60. |--------------------------------------------------------------------------
  61. | dcat-admin install directory
  62. |--------------------------------------------------------------------------
  63. |
  64. | The installation directory of the controller and routing configuration
  65. | files of the administration page. The default is `app/Admin`, which must
  66. | be set before running `artisan admin::install` to take effect.
  67. |
  68. */
  69. 'directory' => app_path('Admin'),
  70. /*
  71. |--------------------------------------------------------------------------
  72. | dcat-admin html title
  73. |--------------------------------------------------------------------------
  74. |
  75. | Html title for all pages.
  76. |
  77. */
  78. 'title' => 'Admin',
  79. /*
  80. |--------------------------------------------------------------------------
  81. | Assets hostname
  82. |--------------------------------------------------------------------------
  83. |
  84. */
  85. 'assets_server' => env('ADMIN_ASSETS_SERVER'),
  86. /*
  87. |--------------------------------------------------------------------------
  88. | Access via `https`
  89. |--------------------------------------------------------------------------
  90. |
  91. | If your page is going to be accessed via https, set it to `true`.
  92. |
  93. */
  94. 'https' => env('ADMIN_HTTPS', false),
  95. /*
  96. |--------------------------------------------------------------------------
  97. | dcat-admin auth setting
  98. |--------------------------------------------------------------------------
  99. |
  100. | Authentication settings for all admin pages. Include an authentication
  101. | guard and a user provider setting of authentication driver.
  102. |
  103. | You can specify a controller for `login` `logout` and other auth routes.
  104. |
  105. */
  106. 'auth' => [
  107. 'enable' => true,
  108. 'controller' => App\Admin\Controllers\AuthController::class,
  109. 'guard' => 'admin',
  110. 'guards' => [
  111. 'admin' => [
  112. 'driver' => 'session',
  113. 'provider' => 'admin',
  114. ],
  115. ],
  116. 'providers' => [
  117. 'admin' => [
  118. 'driver' => 'eloquent',
  119. 'model' => Dcat\Admin\Models\Administrator::class,
  120. ],
  121. ],
  122. // Add "remember me" to login form
  123. 'remember' => true,
  124. // All method to path like: auth/users/*/edit
  125. // or specific method to path like: get:auth/users.
  126. 'except' => [
  127. 'auth/login',
  128. 'auth/logout',
  129. ],
  130. ],
  131. 'grid' => [
  132. /*
  133. |--------------------------------------------------------------------------
  134. | The global Grid action display class.
  135. |--------------------------------------------------------------------------
  136. */
  137. //'grid_action_class' => Dcat\Admin\Grid\Displayers\DropdownActions::class,
  138. 'grid_action_class' => Dcat\Admin\Grid\Displayers\Actions::class,
  139. //'grid_action_class' => Dcat\Admin\Grid\Displayers\ContextMenuActions::class,
  140. ],
  141. /*
  142. |--------------------------------------------------------------------------
  143. | dcat-admin helpers setting.
  144. |--------------------------------------------------------------------------
  145. */
  146. 'helpers' => [
  147. 'enable' => env('APP_ENV')=='prod'? false:true,
  148. ],
  149. /*
  150. |--------------------------------------------------------------------------
  151. | dcat-admin permission setting
  152. |--------------------------------------------------------------------------
  153. |
  154. | Permission settings for all admin pages.
  155. |
  156. */
  157. 'permission' => [
  158. // Whether enable permission.
  159. 'enable' => true,
  160. // All method to path like: auth/users/*/edit
  161. // or specific method to path like: get:auth/users.
  162. 'except' => [
  163. '/',
  164. 'auth/login',
  165. 'auth/logout',
  166. 'auth/setting',
  167. ],
  168. ],
  169. /*
  170. |--------------------------------------------------------------------------
  171. | dcat-admin menu setting
  172. |--------------------------------------------------------------------------
  173. |
  174. */
  175. 'menu' => [
  176. 'cache' => [
  177. // enable cache or not
  178. 'enable' => false,
  179. 'store' => 'file',
  180. ],
  181. // Whether enable menu bind to a permission.
  182. 'bind_permission' => true,
  183. ],
  184. /*
  185. |--------------------------------------------------------------------------
  186. | dcat-admin upload setting
  187. |--------------------------------------------------------------------------
  188. |
  189. | File system configuration for form upload files and images, including
  190. | disk and upload path.
  191. |
  192. */
  193. 'upload' => [
  194. // Disk in `config/filesystem.php`.
  195. 'disk' => 'oss',
  196. // Image and file upload path under the disk above.
  197. 'directory' => [
  198. 'image' => 'mp_images',
  199. 'file' => 'mp_files',
  200. ],
  201. ],
  202. /*
  203. |--------------------------------------------------------------------------
  204. | dcat-admin database settings
  205. |--------------------------------------------------------------------------
  206. |
  207. | Here are database settings for dcat-admin builtin model & tables.
  208. |
  209. */
  210. 'database' => [
  211. // Database connection for following tables.
  212. 'connection' => '',
  213. // User tables and model.
  214. 'users_table' => 'admin_users',
  215. 'users_model' => Dcat\Admin\Models\Administrator::class,
  216. // Role table and model.
  217. 'roles_table' => 'admin_roles',
  218. 'roles_model' => Dcat\Admin\Models\Role::class,
  219. // Permission table and model.
  220. 'permissions_table' => 'admin_permissions',
  221. 'permissions_model' => Dcat\Admin\Models\Permission::class,
  222. // Menu table and model.
  223. 'menu_table' => 'admin_menu',
  224. 'menu_model' => Dcat\Admin\Models\Menu::class,
  225. // Pivot table for table above.
  226. 'operation_log_table' => 'admin_operation_log',
  227. 'role_users_table' => 'admin_role_users',
  228. 'role_permissions_table' => 'admin_role_permissions',
  229. 'role_menu_table' => 'admin_role_menu',
  230. 'permission_menu_table' => 'admin_permission_menu',
  231. ],
  232. /*
  233. |--------------------------------------------------------------------------
  234. | User operation log setting
  235. |--------------------------------------------------------------------------
  236. |
  237. | By setting this option to open or close operation log in dcat-admin.
  238. |
  239. */
  240. 'operation_log' => [
  241. 'enable' => true,
  242. // Only logging allowed methods in the list
  243. 'allowed_methods' => ['GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'CONNECT', 'OPTIONS', 'TRACE', 'PATCH'],
  244. 'secret_fields' => [
  245. 'password',
  246. 'password_confirmation',
  247. ],
  248. // Routes that will not log to database.
  249. // All method to path like: auth/logs/*/edit
  250. // or specific method to path like: get:auth/logs.
  251. 'except' => [
  252. 'auth/logs*',
  253. ],
  254. ],
  255. /*
  256. |--------------------------------------------------------------------------
  257. | Admin map field provider
  258. |--------------------------------------------------------------------------
  259. |
  260. | Supported: "tencent", "google", "yandex".
  261. |
  262. */
  263. 'map_provider' => 'tencent',
  264. /*
  265. |--------------------------------------------------------------------------
  266. | Application layout
  267. |--------------------------------------------------------------------------
  268. |
  269. | This value is the layout of admin pages.
  270. */
  271. 'layout' => [
  272. // indigo, blue, blue-light, blue-dark, green
  273. 'color' => 'green',
  274. //'body_class' => 'dark-mode',
  275. 'body_class' => '',
  276. 'sidebar_collapsed' => false,
  277. 'sidebar_dark' => false,
  278. 'dark_mode_switch' => false,
  279. // bg-primary, bg-info, bg-warning, bg-success, bg-danger, bg-dark
  280. 'navbar_color' => 'bg-primary',
  281. ],
  282. /*
  283. |--------------------------------------------------------------------------
  284. | The exception handler class
  285. |--------------------------------------------------------------------------
  286. |
  287. */
  288. 'exception_handler' => \Dcat\Admin\Exception\Handler::class,
  289. /*
  290. |--------------------------------------------------------------------------
  291. | Enable default breadcrumb
  292. |--------------------------------------------------------------------------
  293. |
  294. | Whether enable default breadcrumb for every page content.
  295. */
  296. 'enable_default_breadcrumb' => true,
  297. /*
  298. |--------------------------------------------------------------------------
  299. | Extension Directory
  300. |--------------------------------------------------------------------------
  301. |
  302. | When you use command `php artisan admin:extend` to generate extensions,
  303. | the extension files will be generated in this directory.
  304. */
  305. 'extension_dir' => app_path('Admin/Extensions'),
  306. /*
  307. |--------------------------------------------------------------------------
  308. | Settings for extensions.
  309. |--------------------------------------------------------------------------
  310. |
  311. | You can find all available extensions here
  312. | https://github.com/dcat-admin-extensions.
  313. |
  314. */
  315. 'extensions' => [
  316. ],
  317. /*
  318. |--------------------------------------------------------------------------
  319. | Settings for store user.
  320. |--------------------------------------------------------------------------
  321. |
  322. */
  323. 'setting' => [
  324. 'authkey' => '5705e957'
  325. ],
  326. /*
  327. |--------------------------------------------------------------------------
  328. | delivery for order.
  329. |--------------------------------------------------------------------------
  330. | 订单配送
  331. */
  332. 'delivery' => [
  333. 'base_fee' => 3.5 // 配送基础费用
  334. ],
  335. ];