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

365 lines
11 KiB

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