海南旅游SAAS
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.

346 lines
11 KiB

  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="/vendor/dcat-admin/images/logo.png" width="35"> &nbsp;Dcat Admin',
  23. /*
  24. |--------------------------------------------------------------------------
  25. | dcat-admin mini logo
  26. |--------------------------------------------------------------------------
  27. |
  28. | The logo of all admin pages when the sidebar menu is collapsed. You can
  29. | also set it as an image by using a `img` tag, eg
  30. | '<img src="http://logo-url" alt="Admin logo">'.
  31. |
  32. */
  33. 'logo-mini' => '<img src="/vendor/dcat-admin/images/logo.png">',
  34. /*
  35. |--------------------------------------------------------------------------
  36. | User default avatar
  37. |--------------------------------------------------------------------------
  38. |
  39. | Set a default avatar for newly created users.
  40. |
  41. */
  42. 'default_avatar' => '@admin/images/default-avatar.jpg',
  43. /*
  44. |--------------------------------------------------------------------------
  45. | dcat-admin route settings
  46. |--------------------------------------------------------------------------
  47. |
  48. | The routing configuration of the admin page, including the path prefix,
  49. | the controller namespace, and the default middleware. If you want to
  50. | access through the root path, just set the prefix to empty string.
  51. |
  52. */
  53. 'route' => [
  54. 'domain' => env('ADMIN_ROUTE_DOMAIN'),
  55. 'prefix' => 'admin-supplier',
  56. 'namespace' => 'App\\AdminSupplier\\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('AdminSupplier'),
  70. /*
  71. |--------------------------------------------------------------------------
  72. | dcat-admin html title
  73. |--------------------------------------------------------------------------
  74. |
  75. | Html title for all pages.
  76. |
  77. */
  78. 'title' => '供应商管理后台',
  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\AdminSupplier\Controllers\AuthController::class,
  109. 'guard' => 'admin-supplier',
  110. 'guards' => [
  111. 'admin-supplier' => [
  112. 'driver' => 'session',
  113. 'provider' => 'admin-supplier',
  114. ],
  115. ],
  116. 'providers' => [
  117. 'admin-supplier' => [
  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. /*
  132. |--------------------------------------------------------------------------
  133. | The global Grid setting
  134. |--------------------------------------------------------------------------
  135. */
  136. 'grid' => [
  137. // The global Grid action display class.
  138. 'grid_action_class' => Dcat\Admin\Grid\Displayers\DropdownActions::class,
  139. // The global Grid batch action display class.
  140. 'batch_action_class' => Dcat\Admin\Grid\Tools\BatchActions::class,
  141. // The global Grid pagination display class.
  142. 'paginator_class' => Dcat\Admin\Grid\Tools\Paginator::class,
  143. 'actions' => [
  144. 'view' => Dcat\Admin\Grid\Actions\Show::class,
  145. 'edit' => Dcat\Admin\Grid\Actions\Edit::class,
  146. 'quick_edit' => Dcat\Admin\Grid\Actions\QuickEdit::class,
  147. 'delete' => Dcat\Admin\Grid\Actions\Delete::class,
  148. 'batch_delete' => Dcat\Admin\Grid\Tools\BatchDelete::class,
  149. ],
  150. // The global Grid column selector setting.
  151. 'column_selector' => [
  152. 'store' => Dcat\Admin\Grid\ColumnSelector\SessionStore::class,
  153. 'store_params' => [
  154. 'driver' => 'file',
  155. ],
  156. ],
  157. ],
  158. /*
  159. |--------------------------------------------------------------------------
  160. | dcat-admin helpers setting.
  161. |--------------------------------------------------------------------------
  162. */
  163. 'helpers' => [
  164. 'enable' => true,
  165. ],
  166. /*
  167. |--------------------------------------------------------------------------
  168. | dcat-admin permission setting
  169. |--------------------------------------------------------------------------
  170. |
  171. | Permission settings for all admin pages.
  172. |
  173. */
  174. 'permission' => [
  175. // Whether enable permission.
  176. 'enable' => true,
  177. // All method to path like: auth/users/*/edit
  178. // or specific method to path like: get:auth/users.
  179. 'except' => [
  180. '/',
  181. 'auth/login',
  182. 'auth/logout',
  183. 'auth/setting',
  184. ],
  185. ],
  186. /*
  187. |--------------------------------------------------------------------------
  188. | dcat-admin menu setting
  189. |--------------------------------------------------------------------------
  190. |
  191. */
  192. 'menu' => [
  193. 'cache' => [
  194. // enable cache or not
  195. 'enable' => false,
  196. 'store' => 'file',
  197. ],
  198. // Whether enable menu bind to a permission.
  199. 'bind_permission' => true,
  200. // Whether enable role bind to menu.
  201. 'role_bind_menu' => true,
  202. // Whether enable permission bind to menu.
  203. 'permission_bind_menu' => true,
  204. 'default_icon' => 'feather icon-circle',
  205. ],
  206. /*
  207. |--------------------------------------------------------------------------
  208. | dcat-admin upload setting
  209. |--------------------------------------------------------------------------
  210. |
  211. | File system configuration for form upload files and images, including
  212. | disk and upload path.
  213. |
  214. */
  215. 'upload' => [
  216. // Disk in `config/filesystem.php`.
  217. 'disk' => 'public',
  218. // Image and file upload path under the disk above.
  219. 'directory' => [
  220. 'image' => 'images',
  221. 'file' => 'files',
  222. ],
  223. ],
  224. /*
  225. |--------------------------------------------------------------------------
  226. | dcat-admin database settings
  227. |--------------------------------------------------------------------------
  228. |
  229. | Here are database settings for dcat-admin builtin model & tables.
  230. |
  231. */
  232. 'database' => [
  233. // Database connection for following tables.
  234. 'connection' => '',
  235. // User tables and model.
  236. 'users_table' => 'suppliers',
  237. 'users_model' => Dcat\Admin\Models\Administrator::class,
  238. // Role table and model.
  239. 'roles_table' => 'admin_supplier_roles',
  240. 'roles_model' => Dcat\Admin\Models\Role::class,
  241. // Permission table and model.
  242. 'permissions_table' => 'admin_supplier_permissions',
  243. 'permissions_model' => Dcat\Admin\Models\Permission::class,
  244. // Menu table and model.
  245. 'menu_table' => 'admin_supplier_menu',
  246. 'menu_model' => Dcat\Admin\Models\Menu::class,
  247. // Pivot table for table above.
  248. 'role_users_table' => 'admin_supplier_role_users',
  249. 'role_permissions_table' => 'admin_supplier_role_permissions',
  250. 'role_menu_table' => 'admin_supplier_role_menu',
  251. 'permission_menu_table' => 'admin_supplier_permission_menu',
  252. 'settings_table' => 'admin_supplier_settings',
  253. 'extensions_table' => 'admin_supplier_extensions',
  254. 'extension_histories_table' => 'admin_supplier_extension_histories',
  255. ],
  256. /*
  257. |--------------------------------------------------------------------------
  258. | Application layout
  259. |--------------------------------------------------------------------------
  260. |
  261. | This value is the layout of admin pages.
  262. */
  263. 'layout' => [
  264. // default, blue, blue-light, green
  265. 'color' => 'default',
  266. // sidebar-separate
  267. 'body_class' => [],
  268. 'horizontal_menu' => false,
  269. 'sidebar_collapsed' => false,
  270. // light, primary, dark
  271. 'sidebar_style' => 'light',
  272. 'dark_mode_switch' => false,
  273. // bg-primary, bg-info, bg-warning, bg-success, bg-danger, bg-dark
  274. 'navbar_color' => '',
  275. ],
  276. /*
  277. |--------------------------------------------------------------------------
  278. | The exception handler class
  279. |--------------------------------------------------------------------------
  280. |
  281. */
  282. 'exception_handler' => Dcat\Admin\Http\Exception\Handler::class,
  283. /*
  284. |--------------------------------------------------------------------------
  285. | Enable default breadcrumb
  286. |--------------------------------------------------------------------------
  287. |
  288. | Whether enable default breadcrumb for every page content.
  289. */
  290. 'enable_default_breadcrumb' => true,
  291. ];