agency.php
6.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<?php
return [
/**
* Configs extends /config/admin.php
*/
'name' => '商户管理后台',//env('APP_NAME_ZH', ''),
'title' => '商户管理后台',//env('APP_NAME_ZH', ''),
'logo' => '<img src="/img/logo.png" alt="Admin logo" style="height: 40px;margin-right: 10px"> 商户管理后台' ,//. env('APP_NAME_ZH'),
'logo-mini' => '<img src="/img/logo.png" alt="Admin logo" style="width: 50px">',
// 'route' => [
// 'middleware' => ['web', 'lad.admin'],
// ],
'route' => [
'prefix' => 'agency',
'namespace' => 'App\\Agency\\Controllers',
'middleware' => ['web', 'lad.admin'/*, 'agency.session'*/],
],
'auth' => [
'controller' => App\Agency\Controllers\AuthController::class,
// The URIs that should be excluded from authorization.
'excepts' => [
'auth/login',
'auth/logout',
'broadcasting/auth'
],
],
'database' => [
'connection' => '',
'users_table' => 'agency_users',
'users_model' => App\Models\Agency\User::class,
'roles_table' => 'agency_roles',
'roles_model' => App\Models\Agency\Role::class,
'permissions_table' => 'agency_permissions',
'permissions_model' => App\Agency\Auth\Database\Permission::class,
'menu_table' => 'agency_menu',
'menu_model' => App\Agency\Auth\Database\Menu::class,
'operation_log_table' => 'agency_operation_log',
'user_permissions_table' => 'agency_user_permissions',
'role_users_table' => 'agency_role_users',
'role_permissions_table' => 'agency_role_permissions',
'role_menu_table' => 'agency_role_menu',
],
/**
* No need to set all one by one .
*
* If some configs are not seted in this file , they will use the values in /config/admin.php
*/
/*
'upload' => [
'disk' => 'admin',
'directory' => [
'image' => 'images',
'file' => 'files',
],
],
'skin' => 'skin-blue-light',
'layout' => ['sidebar-mini', 'sidebar-collapse'],
'login_background_image' => '',
'show_version' => true,
'show_environment' => true,
'menu_bind_permission' => true,
'enable_default_breadcrumb' => true,
'minify_assets' => true,
// etc ..
*/
'bootstrap' => app_path('Agency/bootstrap.php'),
'extensions' => [
'china-distpicker' => [
// 如果要关掉这个扩展,设置为false
'enable' => true,
],
'grid-lightbox' => [
// 如果要关掉这个扩展,设置为false
'enable' => true,
],
'wang-editor' => [
// 如果要关掉这个扩展,设置为false
'enable' => true,
// 编辑器的配置
'config' => [
// `/upload`接口用来上传文件,上传逻辑要自己实现,可参考下面的`上传图片`
'uploadImgServer' => '/upload'
]
],
't-laravel-admin-captcha' => [
#是否开启扩展
'enable' => false,
#验证码高度
'height' => 30,
#宽度
'width' => 100,
#验证码字符长度
'length'=>4
],
'login-captcha' => [
// set to false if you want to disable this extension
'enable' => false,
],
'daterangepicker' => [
// Set to `false` if you want to disable this extension
'enable' => true,
// Find more configurations http://www.daterangepicker.com/
'config' => [
]
],
'la-a-duo' => [
// Set to `false` if you want to disable this extension
'enable' => false,
// ['admin1', 'admin2', ... ]
'prefixes' => ['agency'],
// Set to `false` allow login to different prefixes in same brower
'apart' => false,
// Set to `true` allow extend routes from base admin , Such as http://localhost/admin1/goods => Admin\Controllers\GoodsController@index
'extend_routes' => false,
],
'iframe-tabs' => [
// Set to `false` if you want to disable this extension
'enable' => true,
// The controller and action of dashboard page `/admin/dashboard`
'home_action' => App\Agency\Controllers\HomeController::class . '@index',
// Default page tab-title
'home_title' => '平台概览',
// Default page tab-title icon
'home_icon' => 'fa-home',
// Whether show icon befor titles for all tab
'use_icon' => true,
// dashboard css
'tabs_css' =>'vendor/laravel-admin-ext/iframe-tabs/dashboard.css',
// layer.js path
'layer_path' => 'vendor/laravel-admin-ext/iframe-tabs/layer/layer.js',
/**
* href links do not open in tab .
* selecter : .sidebar-menu li a,.navbar-nav>li a,.sidebar .user-panel a,.sidebar-form .dropdown-menu li a
* if(href.indexOf(pass_urls[i]) > -1) //pass
*/
'pass_urls' => ['/auth/logout', '/auth/lock'],
// When login session state of a tab-page was expired , force top-level window goto login page .
//登录超时是是否强制整体跳转到登录页面,设为false的话只在触发超时登录的页面跳转,最大程度保留已打开页面。
'force_login_in_top' => true,
// tabs left offset
'tabs_left' => 42,
// bind click event of table actions [edit / view / create]
'bind_urls' => 'popup', //[ popup / new_tab / none]
//table actions dom selecter, [view / edit / create]buttons ,and any thing has class pupop : <a class="pupop" popw="400px" poph="200px" href="someurl">mylink</a>
'bind_selecter' => 'a.grid-row-view,a.grid-row-edit,.column-__actions__ ul.dropdown-menu a,.box-header .pull-right .btn-success,.popup',
//layer popup size
'layer_size' => '70%,80%',
// if run web in `cli` mode ,for example `swoole` ,set it to true,如果是以命令行方式运行网站,如`swoole` 就设置为 true
'web_in_cli' => false
]
],
];