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

354 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. 'is_pay',
  137. ],
  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' => 'settled/images/' . date('Y-m'),
  229. 'file' => 'settled/files/' . date('Y-m'),
  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_settled_users',
  245. 'users_model' => Dcat\Admin\Models\Administrator::class,
  246. // Role table and model.
  247. 'roles_table' => 'admin_settled_roles',
  248. 'roles_model' => Dcat\Admin\Models\Role::class,
  249. // Permission table and model.
  250. 'permissions_table' => 'admin_settled_permissions',
  251. 'permissions_model' => Dcat\Admin\Models\Permission::class,
  252. // Menu table and model.
  253. 'menu_table' => 'admin_settled_menu',
  254. 'menu_model' => Dcat\Admin\Models\Menu::class,
  255. // Pivot table for table above.
  256. 'role_users_table' => 'admin_settled_role_users',
  257. 'role_permissions_table' => 'admin_settled_role_permissions',
  258. 'role_menu_table' => 'admin_settled_role_menu',
  259. 'permission_menu_table' => 'admin_settled_permission_menu',
  260. 'settings_table' => 'admin_settled_settings',
  261. 'extensions_table' => 'admin_settled_extensions',
  262. 'extension_histories_table' => 'admin_settled_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\Http\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' => false,
  299. ];