admin.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Laravel-admin name
  6. |--------------------------------------------------------------------------
  7. |
  8. | This value is the name of laravel-admin, This setting is displayed on the
  9. | login page.
  10. |
  11. */
  12. 'name' => '后台管理',
  13. /*
  14. |--------------------------------------------------------------------------
  15. | Laravel-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' => '<b>后台管理</b>',
  23. /*
  24. |--------------------------------------------------------------------------
  25. | Laravel-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' => 'Admin',
  34. /*
  35. |--------------------------------------------------------------------------
  36. | Laravel-admin route settings
  37. |--------------------------------------------------------------------------
  38. |
  39. | The routing configuration of the admin page, including the path prefix,
  40. | the controller namespace, and the default middleware. If you want to
  41. | access through the root path, just set the prefix to empty string.
  42. |
  43. */
  44. 'route' => [
  45. 'prefix' => env('ADMIN_PREFIX', 'ST3IXxKlOa4eGEv0eTw0CfORI9444Mgj'),
  46. 'namespace' => 'App\\Admin\\Controllers',
  47. 'middleware' => ['web', 'admin']
  48. ],
  49. /*
  50. |--------------------------------------------------------------------------
  51. | Laravel-admin install directory
  52. |--------------------------------------------------------------------------
  53. |
  54. | The installation directory of the controller and routing configuration
  55. | files of the administration page. The default is `app/Admin`, which must
  56. | be set before running `artisan admin::install` to take effect.
  57. |
  58. */
  59. 'directory' => app_path('Admin'),
  60. /*
  61. |--------------------------------------------------------------------------
  62. | Laravel-admin html title
  63. |--------------------------------------------------------------------------
  64. |
  65. | Html title for all pages.
  66. |
  67. */
  68. 'title' => '网站后台',
  69. /*
  70. |--------------------------------------------------------------------------
  71. | Access via `https`
  72. |--------------------------------------------------------------------------
  73. |
  74. | If your page is going to be accessed via https, set it to `true`.
  75. |
  76. */
  77. 'https' => env('ADMIN_HTTPS', true),
  78. /*
  79. |--------------------------------------------------------------------------
  80. | Laravel-admin auth setting
  81. |--------------------------------------------------------------------------
  82. |
  83. | Authentication settings for all admin pages. Include an authentication
  84. | guard and a user provider setting of authentication driver.
  85. |
  86. */
  87. 'auth' => [
  88. 'guards' => [
  89. 'admin' => [
  90. 'driver' => 'session',
  91. 'provider' => 'admin',
  92. ],
  93. ],
  94. 'providers' => [
  95. 'admin' => [
  96. 'driver' => 'eloquent',
  97. 'model' => Encore\Admin\Auth\Database\Administrator::class,
  98. ],
  99. ],
  100. ],
  101. /*
  102. |--------------------------------------------------------------------------
  103. | Laravel-admin upload setting
  104. |--------------------------------------------------------------------------
  105. |
  106. | File system configuration for form upload files and images, including
  107. | disk and upload path.
  108. |
  109. */
  110. 'upload' => [
  111. // Disk in `config/filesystem.php`.
  112. 'disk' => 'admin',
  113. // Image and file upload path under the disk above.
  114. 'directory' => [
  115. 'image' => 'admin/images',
  116. 'file' => 'admin/files',
  117. ],
  118. ],
  119. /*
  120. |--------------------------------------------------------------------------
  121. | Laravel-admin database settings
  122. |--------------------------------------------------------------------------
  123. |
  124. | Here are database settings for laravel-admin builtin model & tables.
  125. |
  126. */
  127. 'database' => [
  128. // Database connection for following tables.
  129. 'connection' => '',
  130. // User tables and model.
  131. 'users_table' => 'admin_users',
  132. 'users_model' => Encore\Admin\Auth\Database\Administrator::class,
  133. // Role table and model.
  134. 'roles_table' => 'admin_roles',
  135. 'roles_model' => Encore\Admin\Auth\Database\Role::class,
  136. // Permission table and model.
  137. 'permissions_table' => 'admin_permissions',
  138. 'permissions_model' => \App\Models\Admin\AdminPermission::class,
  139. // Menu table and model.
  140. 'menu_table' => 'admin_menu',
  141. 'menu_model' => App\Models\Admin\AdminMenu::class,
  142. // Pivot table for table above.
  143. 'operation_log_table' => 'admin_operation_log',
  144. 'user_permissions_table' => 'admin_user_permissions',
  145. 'role_users_table' => 'admin_role_users',
  146. 'role_permissions_table' => 'admin_role_permissions',
  147. ],
  148. /*
  149. |--------------------------------------------------------------------------
  150. | User operation log setting
  151. |--------------------------------------------------------------------------
  152. |
  153. | By setting this option to open or close operation log in laravel-admin.
  154. |
  155. */
  156. 'operation_log' => [
  157. 'enable' => true,
  158. /*
  159. * Only logging allowed methods in the list
  160. */
  161. 'allowed_methods' => ['GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'CONNECT', 'OPTIONS', 'TRACE', 'PATCH'],
  162. /*
  163. * Routes that will not log to database.
  164. *
  165. * All method to path like: admin/auth/logs
  166. * or specific method to path like: get:admin/auth/logs.
  167. */
  168. 'except' => [
  169. 'auth/logs*',
  170. 'home/message*',
  171. 'home/ajax*',
  172. 'company.sendsms*',
  173. 'company.sendemail*',
  174. 'company.sendsys*',
  175. 'audit.password*',
  176. 'consultant.set*',
  177. 'ajax.getinfo*',
  178. 'ajax/getpromotion*',
  179. 'ajax/getresume*',
  180. 'jobfairjobs.auditjobs',
  181. 'jobfair.company.audit',
  182. 'blacklist.delete',
  183. 'jobfairoutjobs.auditjobs',
  184. 'jobfairout.company.audit',
  185. 'personal/sendSms',
  186. 'personal/sendEmail',
  187. 'personal/sendSys',
  188. 'personal/auditResume',
  189. 'personal/auditPassword',
  190. 'personal/userTab*',
  191. 'personal/delete/ima',
  192. 'personal/auditImg',
  193. 'personal/auditPhoto',
  194. 'personal/service*',
  195. 'sys/district*',
  196. 'sys/categoryJobs*',
  197. 'sys/category/categoryDis',
  198. 'sys/category/trade',
  199. 'sys/page/index/release',
  200. 'sys/page/index/caching',
  201. 'sys/page/getTag',
  202. 'sys/email/test',
  203. 'sys/sms/test',
  204. ],
  205. ],
  206. /*
  207. |--------------------------------------------------------------------------
  208. | Admin map field provider
  209. |--------------------------------------------------------------------------
  210. |
  211. | Supported: "tencent", "google", "yandex".
  212. |
  213. */
  214. 'map_provider' => 'google',
  215. /*
  216. |--------------------------------------------------------------------------
  217. | Application Skin
  218. |--------------------------------------------------------------------------
  219. |
  220. | This value is the skin of admin pages.
  221. | @see https://adminlte.io/docs/2.4/skin
  222. |
  223. | Supported:
  224. | "skin-blue", "skin-blue-light", "skin-yellow", "skin-yellow-light",
  225. | "skin-green", "skin-green-light", "skin-purple", "skin-purple-light",
  226. | "skin-red", "skin-red-light", "skin-black", "skin-black-light".
  227. |
  228. */
  229. 'skin' => 'skin-blue-light',
  230. /*
  231. |--------------------------------------------------------------------------
  232. | Application layout
  233. |--------------------------------------------------------------------------
  234. |
  235. | This value is the layout of admin pages.
  236. | @see https://adminlte.io/docs/2.4/layout
  237. |
  238. | Supported: "fixed", "layout-boxed", "layout-top-nav", "sidebar-collapse",
  239. | "sidebar-mini".
  240. |
  241. */
  242. 'layout' => ['sidebar-mini'],
  243. /*
  244. |--------------------------------------------------------------------------
  245. | Login page background image
  246. |--------------------------------------------------------------------------
  247. |
  248. | This value is used to set the background image of login page.
  249. |
  250. */
  251. 'login_background_image' => '',
  252. /*
  253. |--------------------------------------------------------------------------
  254. | Show version at footer
  255. |--------------------------------------------------------------------------
  256. |
  257. | Whether to display the version number of laravel-admim at the footer of
  258. | each page
  259. |
  260. */
  261. 'show_version' => false,
  262. /*
  263. |--------------------------------------------------------------------------
  264. | Show environment at footer
  265. |--------------------------------------------------------------------------
  266. |
  267. | Whether to display the environment at the footer of each page
  268. |
  269. */
  270. 'show_environment' => false,
  271. /*
  272. |--------------------------------------------------------------------------
  273. | Extension Directory
  274. |--------------------------------------------------------------------------
  275. |
  276. | When you use command `php artisan admin:extend` to generate extensions,
  277. | the extension files will be generated in this directory.
  278. */
  279. 'extension_dir' => app_path('Admin/Extensions'),
  280. /*
  281. |--------------------------------------------------------------------------
  282. | Settings for extensions.
  283. |--------------------------------------------------------------------------
  284. |
  285. | You can find all available extensions here
  286. | https://github.com/laravel-admin-extensions.
  287. |
  288. */
  289. 'extensions' => [
  290. 'ueditor' => [
  291. // 如果要关掉这个扩展,设置为false
  292. 'enable' => true,
  293. // 编辑器的前端配置 参考:http://fex.baidu.com/ueditor/#start-config
  294. 'config' => [
  295. 'initialFrameHeight' => 400, // 例如初始化高度
  296. ],
  297. 'field_type' => 'editor'
  298. ]
  299. ],
  300. ];