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

364 lines
11 KiB

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