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

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