admin.php 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. <?php
  2. return [
  3. /*
  4. * Laravel-admin name.
  5. */
  6. 'name' => 'Laravel-admin',
  7. /*
  8. * Logo in admin panel header.
  9. */
  10. 'logo' => '<b>Laravel</b> admin',
  11. /*
  12. * Mini-logo in admin panel header.
  13. */
  14. 'logo-mini' => '<b>La</b>',
  15. /*
  16. * Route configuration.
  17. */
  18. 'route' => [
  19. 'prefix' => 'admin',
  20. 'namespace' => 'App\\Admin\\Controllers',
  21. 'middleware' => ['web', 'admin'],
  22. ],
  23. /*
  24. * Laravel-admin install directory.
  25. */
  26. 'directory' => app_path('Admin'),
  27. /*
  28. * Laravel-admin html title.
  29. */
  30. 'title' => 'Admin',
  31. /*
  32. * Use `https`.
  33. */
  34. 'secure' => false,
  35. /*
  36. * Laravel-admin auth setting.
  37. */
  38. 'auth' => [
  39. 'guards' => [
  40. 'admin' => [
  41. 'driver' => 'session',
  42. 'provider' => 'admin',
  43. ],
  44. ],
  45. 'providers' => [
  46. 'admin' => [
  47. 'driver' => 'eloquent',
  48. 'model' => Encore\Admin\Auth\Database\Administrator::class,
  49. ],
  50. ],
  51. ],
  52. /*
  53. * Laravel-admin upload setting.
  54. */
  55. 'upload' => [
  56. 'disk' => 'admin',
  57. 'directory' => [
  58. 'image' => 'images',
  59. 'file' => 'files',
  60. ],
  61. ],
  62. /*
  63. * Laravel-admin database setting.
  64. */
  65. 'database' => [
  66. // Database connection for following tables.
  67. 'connection' => '',
  68. // User tables and model.
  69. 'users_table' => 'admin_users',
  70. 'users_model' => Encore\Admin\Auth\Database\Administrator::class,
  71. // Role table and model.
  72. 'roles_table' => 'admin_roles',
  73. 'roles_model' => Encore\Admin\Auth\Database\Role::class,
  74. // Permission table and model.
  75. 'permissions_table' => 'admin_permissions',
  76. 'permissions_model' => Encore\Admin\Auth\Database\Permission::class,
  77. // Menu table and model.
  78. 'menu_table' => 'admin_menu',
  79. 'menu_model' => Encore\Admin\Auth\Database\Menu::class,
  80. // Pivot table for table above.
  81. 'operation_log_table' => 'admin_operation_log',
  82. 'user_permissions_table' => 'admin_user_permissions',
  83. 'role_users_table' => 'admin_role_users',
  84. 'role_permissions_table' => 'admin_role_permissions',
  85. 'role_menu_table' => 'admin_role_menu',
  86. ],
  87. /*
  88. * By setting this option to open or close operation log in laravel-admin.
  89. */
  90. 'operation_log' => [
  91. 'enable' => true,
  92. /*
  93. * Routes that will not log to database.
  94. *
  95. * All method to path like: admin/auth/logs
  96. * or specific method to path like: get:admin/auth/logs
  97. */
  98. 'except' => [
  99. 'admin/auth/logs*',
  100. ],
  101. ],
  102. /*
  103. * @see https://adminlte.io/docs/2.4/layout
  104. */
  105. 'skin' => 'skin-blue-light',
  106. /*
  107. |---------------------------------------------------------|
  108. |LAYOUT OPTIONS | fixed |
  109. | | layout-boxed |
  110. | | layout-top-nav |
  111. | | sidebar-collapse |
  112. | | sidebar-mini |
  113. |---------------------------------------------------------|
  114. */
  115. 'layout' => ['sidebar-mini', 'sidebar-collapse'],
  116. /*
  117. * Background image in login page
  118. */
  119. 'login_background_image' => '',
  120. /*
  121. * Version displayed in footer.
  122. */
  123. 'version' => '1.5.x-dev',
  124. /*
  125. * Settings for extensions.
  126. */
  127. 'extensions' => [
  128. ],
  129. ];