admin.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  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' => '<b>管理</b>',
  34. /*
  35. |--------------------------------------------------------------------------
  36. | Laravel-admin bootstrap setting
  37. |--------------------------------------------------------------------------
  38. |
  39. | This value is the path of laravel-admin bootstrap file.
  40. |
  41. */
  42. 'bootstrap' => app_path('Admin/bootstrap.php'),
  43. /*
  44. |--------------------------------------------------------------------------
  45. | Laravel-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. 'prefix' => env('ADMIN_ROUTE_PREFIX', 'admin'),
  55. 'namespace' => 'App\\Admin\\Controllers',
  56. 'middleware' => ['web', 'admin'],
  57. ],
  58. /*
  59. |--------------------------------------------------------------------------
  60. | Laravel-admin install directory
  61. |--------------------------------------------------------------------------
  62. |
  63. | The installation directory of the controller and routing configuration
  64. | files of the administration page. The default is `app/Admin`, which must
  65. | be set before running `artisan admin::install` to take effect.
  66. |
  67. */
  68. 'directory' => app_path('Admin'),
  69. /*
  70. |--------------------------------------------------------------------------
  71. | Laravel-admin html title
  72. |--------------------------------------------------------------------------
  73. |
  74. | Html title for all pages.
  75. |
  76. */
  77. 'title' => '系统管理',
  78. /*
  79. |--------------------------------------------------------------------------
  80. | Access via `https`
  81. |--------------------------------------------------------------------------
  82. |
  83. | If your page is going to be accessed via https, set it to `true`.
  84. |
  85. */
  86. 'https' => env('ADMIN_HTTPS', true),
  87. /*
  88. |--------------------------------------------------------------------------
  89. | Laravel-admin auth setting
  90. |--------------------------------------------------------------------------
  91. |
  92. | Authentication settings for all admin pages. Include an authentication
  93. | guard and a user provider setting of authentication driver.
  94. |
  95. | You can specify a controller for `login` `logout` and other auth routes.
  96. |
  97. */
  98. 'auth' => [
  99. 'controller' => App\Admin\Controllers\AuthController::class,
  100. 'guard' => 'admin',
  101. 'guards' => [
  102. 'admin' => [
  103. 'driver' => 'session',
  104. 'provider' => 'admin',
  105. ],
  106. ],
  107. 'providers' => [
  108. 'admin' => [
  109. 'driver' => 'eloquent',
  110. 'model' => Encore\Admin\Auth\Database\Administrator::class,
  111. ],
  112. ],
  113. // Add "remember me" to login form
  114. 'remember' => false,
  115. // Redirect to the specified URI when user is not authorized.
  116. 'redirect_to' => 'auth/login',
  117. // The URIs that should be excluded from authorization.
  118. 'excepts' => [
  119. 'auth/login',
  120. 'auth/logout',
  121. ],
  122. ],
  123. /*
  124. |--------------------------------------------------------------------------
  125. | Laravel-admin upload setting
  126. |--------------------------------------------------------------------------
  127. |
  128. | File system configuration for form upload files and images, including
  129. | disk and upload path.
  130. |
  131. */
  132. 'upload' => [
  133. // Disk in `config/filesystem.php`.
  134. 'disk' => 'qiniu',
  135. // Image and file upload path under the disk above.
  136. 'directory' => [
  137. 'image' => 'images',
  138. 'file' => 'files',
  139. ],
  140. ],
  141. /*
  142. |--------------------------------------------------------------------------
  143. | Laravel-admin database settings
  144. |--------------------------------------------------------------------------
  145. |
  146. | Here are database settings for laravel-admin builtin model & tables.
  147. |
  148. */
  149. 'database' => [
  150. // Database connection for following tables.
  151. 'connection' => '',
  152. // User tables and model.
  153. 'users_table' => 'admin_users',
  154. 'users_model' => Encore\Admin\Auth\Database\Administrator::class,
  155. // Role table and model.
  156. 'roles_table' => 'admin_roles',
  157. 'roles_model' => Encore\Admin\Auth\Database\Role::class,
  158. // Permission table and model.
  159. 'permissions_table' => 'admin_permissions',
  160. 'permissions_model' => Encore\Admin\Auth\Database\Permission::class,
  161. // Menu table and model.
  162. 'menu_table' => 'admin_menu',
  163. 'menu_model' => Encore\Admin\Auth\Database\Menu::class,
  164. // Pivot table for table above.
  165. 'operation_log_table' => 'admin_operation_log',
  166. 'user_permissions_table' => 'admin_user_permissions',
  167. 'role_users_table' => 'admin_role_users',
  168. 'role_permissions_table' => 'admin_role_permissions',
  169. 'role_menu_table' => 'admin_role_menu',
  170. ],
  171. /*
  172. |--------------------------------------------------------------------------
  173. | User operation log setting
  174. |--------------------------------------------------------------------------
  175. |
  176. | By setting this option to open or close operation log in laravel-admin.
  177. |
  178. */
  179. 'operation_log' => [
  180. 'enable' => true,
  181. /*
  182. * Only logging allowed methods in the list
  183. */
  184. 'allowed_methods' => ['GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'CONNECT', 'OPTIONS', 'TRACE', 'PATCH'],
  185. /*
  186. * Routes that will not log to database.
  187. *
  188. * All method to path like: admin/auth/logs
  189. * or specific method to path like: get:admin/auth/logs.
  190. */
  191. 'except' => [
  192. 'admin/auth/logs*',
  193. ],
  194. ],
  195. /*
  196. |--------------------------------------------------------------------------
  197. | User default avatar
  198. |--------------------------------------------------------------------------
  199. |
  200. | Set a default avatar for newly created users.
  201. |
  202. */
  203. 'default_avatar' => '/vendor/laravel-admin/AdminLTE/dist/img/user2-160x160.jpg',
  204. /*
  205. |--------------------------------------------------------------------------
  206. | Admin map field provider
  207. |--------------------------------------------------------------------------
  208. |
  209. | Supported: "tencent", "google", "yandex".
  210. |
  211. */
  212. 'map_provider' => 'tencent',
  213. /*
  214. |--------------------------------------------------------------------------
  215. | Application Skin
  216. |--------------------------------------------------------------------------
  217. |
  218. | This value is the skin of admin pages.
  219. | @see https://adminlte.io/docs/2.4/layout
  220. |
  221. | Supported:
  222. | "skin-blue", "skin-blue-light", "skin-yellow", "skin-yellow-light",
  223. | "skin-green", "skin-green-light", "skin-purple", "skin-purple-light",
  224. | "skin-red", "skin-red-light", "skin-black", "skin-black-light".
  225. |
  226. */
  227. 'skin' => 'skin-purple',
  228. /*
  229. |--------------------------------------------------------------------------
  230. | Application layout
  231. |--------------------------------------------------------------------------
  232. |
  233. | This value is the layout of admin pages.
  234. | @see https://adminlte.io/docs/2.4/layout
  235. |
  236. | Supported: "fixed", "layout-boxed", "layout-top-nav", "sidebar-collapse",
  237. | "sidebar-mini".
  238. |
  239. */
  240. 'layout' => ['sidebar-mini', 'sidebar-collapse'],
  241. /*
  242. |--------------------------------------------------------------------------
  243. | Login page background image
  244. |--------------------------------------------------------------------------
  245. |
  246. | This value is used to set the background image of login page.
  247. |
  248. */
  249. 'login_background_image' => '/bg.jpg',
  250. /*
  251. |--------------------------------------------------------------------------
  252. | Show version at footer
  253. |--------------------------------------------------------------------------
  254. |
  255. | Whether to display the version number of laravel-admin at the footer of
  256. | each page
  257. |
  258. */
  259. 'show_version' => false,
  260. /*
  261. |--------------------------------------------------------------------------
  262. | Show environment at footer
  263. |--------------------------------------------------------------------------
  264. |
  265. | Whether to display the environment at the footer of each page
  266. |
  267. */
  268. 'show_environment' => false,
  269. /*
  270. |--------------------------------------------------------------------------
  271. | Menu bind to permission
  272. |--------------------------------------------------------------------------
  273. |
  274. | whether enable menu bind to a permission
  275. */
  276. 'menu_bind_permission' => true,
  277. /*
  278. |--------------------------------------------------------------------------
  279. | Enable default breadcrumb
  280. |--------------------------------------------------------------------------
  281. |
  282. | Whether enable default breadcrumb for every page content.
  283. */
  284. 'enable_default_breadcrumb' => true,
  285. /*
  286. |--------------------------------------------------------------------------
  287. | Enable/Disable assets minify
  288. |--------------------------------------------------------------------------
  289. */
  290. 'minify_assets' => [
  291. // Assets will not be minified.
  292. 'excepts' => [
  293. ],
  294. ],
  295. /*
  296. |--------------------------------------------------------------------------
  297. | Enable/Disable sidebar menu search
  298. |--------------------------------------------------------------------------
  299. */
  300. 'enable_menu_search' => false,
  301. /*
  302. |--------------------------------------------------------------------------
  303. | Extension Directory
  304. |--------------------------------------------------------------------------
  305. |
  306. | When you use command `php artisan admin:extend` to generate extensions,
  307. | the extension files will be generated in this directory.
  308. */
  309. 'extension_dir' => app_path('Admin/Extensions'),
  310. /*
  311. |--------------------------------------------------------------------------
  312. | Settings for extensions.
  313. |--------------------------------------------------------------------------
  314. |
  315. | You can find all available extensions here
  316. | https://github.com/laravel-admin-extensions.
  317. |
  318. */
  319. 'extensions' => [
  320. ],
  321. ];