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

353 lines
11 KiB

4 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="/vendor/dcat-admin/images/logo.png" width="35"> &nbsp;商家入驻',
  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' => 'enter',
  56. 'namespace' => 'App\\AdminSettled\\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('AdminSettled'),
  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\AdminSettled\Controllers\AuthController::class,
  109. 'guard' => 'admin-settled',
  110. 'guards' => [
  111. 'admin-settled' => [
  112. 'driver' => 'session',
  113. 'provider' => 'admin-settled',
  114. ],
  115. ],
  116. 'providers' => [
  117. 'admin-settled' => [
  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. '/',
  128. 'auth/login',
  129. 'auth/logout',
  130. 'supplier',
  131. 'supplier/create',
  132. 'agent',
  133. 'agent/create',
  134. 'guide',
  135. 'guide/create',
  136. ],
  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' => 'settled/images',
  228. 'file' => 'settled/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_settled_users',
  244. 'users_model' => Dcat\Admin\Models\Administrator::class,
  245. // Role table and model.
  246. 'roles_table' => 'admin_settled_roles',
  247. 'roles_model' => Dcat\Admin\Models\Role::class,
  248. // Permission table and model.
  249. 'permissions_table' => 'admin_settled_permissions',
  250. 'permissions_model' => Dcat\Admin\Models\Permission::class,
  251. // Menu table and model.
  252. 'menu_table' => 'admin_settled_menu',
  253. 'menu_model' => Dcat\Admin\Models\Menu::class,
  254. // Pivot table for table above.
  255. 'role_users_table' => 'admin_settled_role_users',
  256. 'role_permissions_table' => 'admin_settled_role_permissions',
  257. 'role_menu_table' => 'admin_settled_role_menu',
  258. 'permission_menu_table' => 'admin_settled_permission_menu',
  259. 'settings_table' => 'admin_settled_settings',
  260. 'extensions_table' => 'admin_settled_extensions',
  261. 'extension_histories_table' => 'admin_settled_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\Http\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' => false,
  298. ];