accredit.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360
  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' => 'Api',
  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' => 'Api',
  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. | dcat-admin favicon
  37. |--------------------------------------------------------------------------
  38. |
  39. */
  40. 'favicon' => null,
  41. /*
  42. |--------------------------------------------------------------------------
  43. | User default avatar
  44. |--------------------------------------------------------------------------
  45. |
  46. | Set a default avatar for newly created users.
  47. |
  48. */
  49. 'default_avatar' => '@admin/images/default-avatar.jpg',
  50. /*
  51. |--------------------------------------------------------------------------
  52. | dcat-admin route settings
  53. |--------------------------------------------------------------------------
  54. |
  55. | The routing configuration of the admin page, including the path prefix,
  56. | the controller namespace, and the default middleware. If you want to
  57. | access through the root path, just set the prefix to empty string.
  58. |
  59. */
  60. 'route' => [
  61. 'domain' => env('ADMIN_ROUTE_DOMAIN'),
  62. 'prefix' => 'api',
  63. 'prefixd' => 'app',
  64. // 'namespace' => 'App\\DataApi\\Api',
  65. 'namespaced' => 'App\\DataApi\\Api',
  66. 'middleware' => ['app'],
  67. 'middlewared' => [],
  68. ],
  69. /*
  70. |--------------------------------------------------------------------------
  71. | dcat-admin install directory
  72. |--------------------------------------------------------------------------
  73. |
  74. | The installation directory of the controller and routing configuration
  75. | files of the administration page. The default is `app/Admin`, which must
  76. | be set before running `artisan admin::install` to take effect.
  77. |
  78. */
  79. 'directory' => app_path('DataApi'),
  80. /*
  81. |--------------------------------------------------------------------------
  82. | dcat-admin html title
  83. |--------------------------------------------------------------------------
  84. |
  85. | Html title for all pages.
  86. |
  87. */
  88. 'title' => 'Admin',
  89. /*
  90. |--------------------------------------------------------------------------
  91. | Assets hostname
  92. |--------------------------------------------------------------------------
  93. |
  94. */
  95. 'assets_server' => env('ADMIN_ASSETS_SERVER'),
  96. /*
  97. |--------------------------------------------------------------------------
  98. | Access via `https`
  99. |--------------------------------------------------------------------------
  100. |
  101. | If your page is going to be accessed via https, set it to `true`.
  102. |
  103. */
  104. 'https' => env('ADMIN_HTTPS', true),
  105. /*
  106. |--------------------------------------------------------------------------
  107. | dcat-admin auth setting
  108. |--------------------------------------------------------------------------
  109. |
  110. | Authentication settings for all admin pages. Include an authentication
  111. | guard and a user provider setting of authentication driver.
  112. |
  113. | You can specify a controller for `login` `logout` and other auth routes.
  114. |
  115. */
  116. 'auth' => [
  117. 'enable' => true,
  118. 'controller' => App\DataApi\Controllers\AuthController::class,
  119. 'guard' => 'data-api',
  120. 'guards' => [
  121. 'data-api' => [
  122. 'driver' => 'session',
  123. 'provider' => 'data-api',
  124. ],
  125. ],
  126. 'providers' => [
  127. 'data-api' => [
  128. 'driver' => 'eloquent',
  129. 'model' => Dcat\Admin\Models\Administrator::class,
  130. ],
  131. ],
  132. // Add "remember me" to login form
  133. 'remember' => true,
  134. // All method to path like: auth/users/*/edit
  135. // or specific method to path like: get:auth/users.
  136. 'except' => [
  137. 'auth/login',
  138. 'auth/logout',
  139. ],
  140. ],
  141. /*
  142. |--------------------------------------------------------------------------
  143. | The global Grid setting
  144. |--------------------------------------------------------------------------
  145. */
  146. 'grid' => [
  147. // The global Grid action display class.
  148. 'grid_action_class' => Dcat\Admin\Grid\Displayers\DropdownActions::class,
  149. // The global Grid batch action display class.
  150. 'batch_action_class' => Dcat\Admin\Grid\Tools\BatchActions::class,
  151. // The global Grid pagination display class.
  152. 'paginator_class' => Dcat\Admin\Grid\Tools\Paginator::class,
  153. 'actions' => [
  154. 'view' => Dcat\Admin\Grid\Actions\Show::class,
  155. 'edit' => Dcat\Admin\Grid\Actions\Edit::class,
  156. 'quick_edit' => Dcat\Admin\Grid\Actions\QuickEdit::class,
  157. 'delete' => Dcat\Admin\Grid\Actions\Delete::class,
  158. 'batch_delete' => Dcat\Admin\Grid\Tools\BatchDelete::class,
  159. ],
  160. // The global Grid column selector setting.
  161. 'column_selector' => [
  162. 'store' => Dcat\Admin\Grid\ColumnSelector\SessionStore::class,
  163. 'store_params' => [
  164. 'driver' => 'file',
  165. ],
  166. ],
  167. ],
  168. /*
  169. |--------------------------------------------------------------------------
  170. | dcat-admin helpers setting.
  171. |--------------------------------------------------------------------------
  172. */
  173. 'helpers' => [
  174. 'enable' => false,
  175. ],
  176. /*
  177. |--------------------------------------------------------------------------
  178. | dcat-admin permission setting
  179. |--------------------------------------------------------------------------
  180. |
  181. | Permission settings for all admin pages.
  182. |
  183. */
  184. 'permission' => [
  185. // Whether enable permission.
  186. 'enable' => false,
  187. // All method to path like: auth/users/*/edit
  188. // or specific method to path like: get:auth/users.
  189. 'except' => [
  190. '/',
  191. 'auth/login',
  192. 'auth/logout',
  193. 'auth/setting',
  194. ],
  195. ],
  196. /*
  197. |--------------------------------------------------------------------------
  198. | dcat-admin menu setting
  199. |--------------------------------------------------------------------------
  200. |
  201. */
  202. 'menu' => [
  203. 'cache' => [
  204. // enable cache or not
  205. 'enable' => false,
  206. 'store' => 'file',
  207. ],
  208. // Whether enable menu bind to a permission.
  209. 'bind_permission' => true,
  210. // Whether enable role bind to menu.
  211. 'role_bind_menu' => true,
  212. // Whether enable permission bind to menu.
  213. 'permission_bind_menu' => true,
  214. 'default_icon' => 'feather icon-circle',
  215. ],
  216. /*
  217. |--------------------------------------------------------------------------
  218. | dcat-admin upload setting
  219. |--------------------------------------------------------------------------
  220. |
  221. | File system configuration for form upload files and images, including
  222. | disk and upload path.
  223. |
  224. */
  225. 'upload' => [
  226. // Disk in `config/filesystem.php`.
  227. 'disk' => 'public',
  228. // Image and file upload path under the disk above.
  229. 'directory' => [
  230. 'image' => 'images',
  231. 'file' => 'files',
  232. ],
  233. ],
  234. /*
  235. |--------------------------------------------------------------------------
  236. | dcat-admin database settings
  237. |--------------------------------------------------------------------------
  238. |
  239. | Here are database settings for dcat-admin builtin model & tables.
  240. |
  241. */
  242. 'database' => [
  243. // Database connection for following tables.
  244. 'connection' => '',
  245. // User tables and model.
  246. 'users_table' => 'admin_users',
  247. 'users_model' => Dcat\Admin\Models\Administrator::class,
  248. // Role table and model.
  249. 'roles_table' => 'admin_roles',
  250. 'roles_model' => Dcat\Admin\Models\Role::class,
  251. // Permission table and model.
  252. 'permissions_table' => 'admin_permissions',
  253. 'permissions_model' => Dcat\Admin\Models\Permission::class,
  254. // Menu table and model.
  255. 'menu_table' => 'admin_menu',
  256. 'menu_model' => Dcat\Admin\Models\Menu::class,
  257. // Pivot table for table above.
  258. 'role_users_table' => 'admin_role_users',
  259. 'role_permissions_table' => 'admin_role_permissions',
  260. 'role_menu_table' => 'admin_role_menu',
  261. 'permission_menu_table' => 'admin_permission_menu',
  262. 'settings_table' => 'admin_settings',
  263. 'extensions_table' => 'admin_extensions',
  264. 'extension_histories_table' => 'admin_extension_histories',
  265. ],
  266. /*
  267. |--------------------------------------------------------------------------
  268. | Application layout
  269. |--------------------------------------------------------------------------
  270. |
  271. | This value is the layout of admin pages.
  272. */
  273. 'layout' => [
  274. // default, blue, blue-light, green
  275. 'color' => 'default',
  276. // sidebar-separate
  277. 'body_class' => [],
  278. 'horizontal_menu' => false,
  279. 'sidebar_collapsed' => false,
  280. // light, primary, dark
  281. 'sidebar_style' => 'light',
  282. 'dark_mode_switch' => false,
  283. // bg-primary, bg-info, bg-warning, bg-success, bg-danger, bg-dark
  284. 'navbar_color' => '',
  285. ],
  286. /*
  287. |--------------------------------------------------------------------------
  288. | The exception handler class
  289. |--------------------------------------------------------------------------
  290. |
  291. */
  292. 'exception_handler' => Dcat\Admin\Exception\Handler::class,
  293. /*
  294. |--------------------------------------------------------------------------
  295. | Enable default breadcrumb
  296. |--------------------------------------------------------------------------
  297. |
  298. | Whether enable default breadcrumb for every page content.
  299. */
  300. 'enable_default_breadcrumb' => true,
  301. ];