| xqd
@@ -4,27 +4,37 @@ return [
|
|
|
|
|
|
/*
|
|
|
|--------------------------------------------------------------------------
|
|
|
- | The name of admin application
|
|
|
+ | Laravel-admin name
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
- | This value is the name of admin application, This setting is displayed on the
|
|
|
+ | This value is the name of laravel-admin, This setting is displayed on the
|
|
|
| login page.
|
|
|
|
|
|
|
*/
|
|
|
- 'name' => 'Laravel-admin',
|
|
|
+ 'name' => '超级妈力管理平台',
|
|
|
|
|
|
/*
|
|
|
|--------------------------------------------------------------------------
|
|
|
- | Logo setting of admin application
|
|
|
+ | Laravel-admin logo
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
+ | The logo of all admin pages. You can also set it as an image by using a
|
|
|
+ | `img` tag, eg '<img src="http://logo-url" alt="Admin logo">'.
|
|
|
+ |
|
|
|
*/
|
|
|
- 'logo' => [
|
|
|
-
|
|
|
- 'image' => '/vendor/laravel-admin/AdminLTE/img/AdminLTELogo.png',
|
|
|
+ 'logo' => '<b>超级妈力</b> 管理平台',
|
|
|
|
|
|
- 'text' => '<span class="font-weight-bolder">Laravel-admin</span>',
|
|
|
- ],
|
|
|
+ /*
|
|
|
+ |--------------------------------------------------------------------------
|
|
|
+ | Laravel-admin mini logo
|
|
|
+ |--------------------------------------------------------------------------
|
|
|
+ |
|
|
|
+ | The logo of all admin pages when the sidebar menu is collapsed. You can
|
|
|
+ | also set it as an image by using a `img` tag, eg
|
|
|
+ | '<img src="http://logo-url" alt="Admin logo">'.
|
|
|
+ |
|
|
|
+ */
|
|
|
+ 'logo-mini' => '<b>超级妈力</b>',
|
|
|
|
|
|
/*
|
|
|
|--------------------------------------------------------------------------
|
| xqd
@@ -52,7 +62,7 @@ return [
|
|
|
|
|
|
'namespace' => 'App\\Admin\\Controllers',
|
|
|
|
|
|
- 'middleware' => ['web', 'admin'],
|
|
|
+ 'middleware' => ['web', 'admin','multi-session:path,/admin'],
|
|
|
],
|
|
|
|
|
|
/*
|
| xqd
@@ -75,7 +85,7 @@ return [
|
|
|
| Html title for all pages.
|
|
|
|
|
|
|
*/
|
|
|
- 'title' => 'Admin',
|
|
|
+ 'title' => '超级妈力',
|
|
|
|
|
|
/*
|
|
|
|--------------------------------------------------------------------------
|
| xqd
@@ -114,7 +124,7 @@ return [
|
|
|
'providers' => [
|
|
|
'admin' => [
|
|
|
'driver' => 'eloquent',
|
|
|
- 'model' => Encore\Admin\Models\Administrator::class,
|
|
|
+ 'model' => Encore\Admin\Auth\Database\Administrator::class,
|
|
|
],
|
|
|
],
|
|
|
|
| xqd
@@ -128,10 +138,7 @@ return [
|
|
|
'excepts' => [
|
|
|
'auth/login',
|
|
|
'auth/logout',
|
|
|
- '_handle_form_',
|
|
|
'_handle_action_',
|
|
|
- '_handle_selectable_',
|
|
|
- '_handle_renderable_',
|
|
|
],
|
|
|
],
|
|
|
|
| xqd
@@ -171,13 +178,70 @@ return [
|
|
|
|
|
|
// User tables and model.
|
|
|
'users_table' => 'admin_users',
|
|
|
- 'users_model' => Encore\Admin\Models\Administrator::class,
|
|
|
+ 'users_model' => Encore\Admin\Auth\Database\Administrator::class,
|
|
|
+
|
|
|
+ // Role table and model.
|
|
|
+ 'roles_table' => 'admin_roles',
|
|
|
+ 'roles_model' => Encore\Admin\Auth\Database\Role::class,
|
|
|
+
|
|
|
+ // Permission table and model.
|
|
|
+ 'permissions_table' => 'admin_permissions',
|
|
|
+ 'permissions_model' => Encore\Admin\Auth\Database\Permission::class,
|
|
|
|
|
|
// Menu table and model.
|
|
|
'menu_table' => 'admin_menu',
|
|
|
- 'menu_model' => Encore\Admin\Models\Menu::class,
|
|
|
+ 'menu_model' => Encore\Admin\Auth\Database\Menu::class,
|
|
|
+
|
|
|
+ // Pivot table for table above.
|
|
|
+ 'operation_log_table' => 'admin_operation_log',
|
|
|
+ 'user_permissions_table' => 'admin_user_permissions',
|
|
|
+ 'role_users_table' => 'admin_role_users',
|
|
|
+ 'role_permissions_table' => 'admin_role_permissions',
|
|
|
+ 'role_menu_table' => 'admin_role_menu',
|
|
|
+ ],
|
|
|
+
|
|
|
+ /*
|
|
|
+ |--------------------------------------------------------------------------
|
|
|
+ | User operation log setting
|
|
|
+ |--------------------------------------------------------------------------
|
|
|
+ |
|
|
|
+ | By setting this option to open or close operation log in laravel-admin.
|
|
|
+ |
|
|
|
+ */
|
|
|
+ 'operation_log' => [
|
|
|
+
|
|
|
+ 'enable' => true,
|
|
|
+
|
|
|
+ /*
|
|
|
+ * Only logging allowed methods in the list
|
|
|
+ */
|
|
|
+ 'allowed_methods' => ['GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'CONNECT', 'OPTIONS', 'TRACE', 'PATCH'],
|
|
|
+
|
|
|
+ /*
|
|
|
+ * Routes that will not log to database.
|
|
|
+ *
|
|
|
+ * All method to path like: admin/auth/logs
|
|
|
+ * or specific method to path like: get:admin/auth/logs.
|
|
|
+ */
|
|
|
+ 'except' => [
|
|
|
+ 'admin/auth/logs*',
|
|
|
+ ],
|
|
|
],
|
|
|
|
|
|
+ /*
|
|
|
+ |--------------------------------------------------------------------------
|
|
|
+ | Indicates whether to check route permission.
|
|
|
+ |--------------------------------------------------------------------------
|
|
|
+ */
|
|
|
+ 'check_route_permission' => true,
|
|
|
+
|
|
|
+ /*
|
|
|
+ |--------------------------------------------------------------------------
|
|
|
+ | Indicates whether to check menu roles.
|
|
|
+ |--------------------------------------------------------------------------
|
|
|
+ */
|
|
|
+ 'check_menu_roles' => true,
|
|
|
+
|
|
|
/*
|
|
|
|--------------------------------------------------------------------------
|
|
|
| User default avatar
|
| xqd
@@ -186,96 +250,47 @@ return [
|
|
|
| Set a default avatar for newly created users.
|
|
|
|
|
|
|
*/
|
|
|
- 'default_avatar' => '/vendor/laravel-admin/AdminLTE/img/user2-160x160.jpg',
|
|
|
+ 'default_avatar' => '/vendor/laravel-admin/AdminLTE/dist/img/user2-160x160.jpg',
|
|
|
|
|
|
/*
|
|
|
|--------------------------------------------------------------------------
|
|
|
- | Application theme
|
|
|
+ | Admin map field provider
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
- | @see https://adminlte.io/docs/3.0/layout.html
|
|
|
+ | Supported: "tencent", "google", "yandex".
|
|
|
|
|
|
|
*/
|
|
|
- 'theme' => [
|
|
|
+ 'map_provider' => 'google',
|
|
|
|
|
|
- /*
|
|
|
- |--------------------------------------------------------------------------
|
|
|
- | Available layout options.
|
|
|
- |--------------------------------------------------------------------------
|
|
|
- | Fixed Sidebar: use the class `.layout-fixed` to get a fixed sidebar.
|
|
|
- | Fixed Navbar: use the class `.layout-navbar-fixed` to get a fixed navbar.
|
|
|
- | Fixed Footer: use the class `.layout-footer-fixed` to get a fixed footer.
|
|
|
- | Collapsed Sidebar: use the class `.sidebar-collapse` to have a collapsed sidebar upon loading.
|
|
|
- | Boxed Layout: use the class `.layout-boxed` to get a boxed layout that stretches only to 1250px.
|
|
|
- | Top Navigation: use the class `.layout-top-nav` to remove the sidebar and have your links at the top navbar.
|
|
|
- |
|
|
|
- */
|
|
|
- 'layout' => ['sidebar-mini', 'sidebar-collapse', 'text-sm'],
|
|
|
-
|
|
|
- /*
|
|
|
- |--------------------------------------------------------------------------
|
|
|
- | Default color for all links.
|
|
|
- |--------------------------------------------------------------------------
|
|
|
- |
|
|
|
- | navbar-light or navbar-dark for content color
|
|
|
- |
|
|
|
- | navbar-$color for backgroud color
|
|
|
- |
|
|
|
- | Available $color options:
|
|
|
- | primary secondary secondary info warning danger black gray-dark gray
|
|
|
- | light indigo navy purple fuchsia pink maroon orange lime teal olive
|
|
|
- |
|
|
|
- */
|
|
|
- 'navbar' => 'navbar-light navbar-white',
|
|
|
-
|
|
|
- /*
|
|
|
- |--------------------------------------------------------------------------
|
|
|
- | Default color for all links.
|
|
|
- |--------------------------------------------------------------------------
|
|
|
- |
|
|
|
- | Available options:
|
|
|
- | primary secondary secondary info warning danger black gray-dark gray
|
|
|
- | light indigo navy purple fuchsia pink maroon orange lime teal olive
|
|
|
- |
|
|
|
- */
|
|
|
- 'accent' => 'info',
|
|
|
-
|
|
|
- /*
|
|
|
- |--------------------------------------------------------------------------
|
|
|
- | Default color for card form and buttons.
|
|
|
- |--------------------------------------------------------------------------
|
|
|
- |
|
|
|
- | light-$color or dark-$color
|
|
|
- |
|
|
|
- | Available $color options:
|
|
|
- | primary secondary secondary info warning danger black gray-dark gray
|
|
|
- | light indigo navy purple fuchsia pink maroon orange lime teal olive
|
|
|
- |
|
|
|
- */
|
|
|
- 'sidebar' => 'light-info',
|
|
|
-
|
|
|
- /*
|
|
|
- |--------------------------------------------------------------------------
|
|
|
- | Default color for card, form and buttons.
|
|
|
- |--------------------------------------------------------------------------
|
|
|
- |
|
|
|
- | Available options:
|
|
|
- | primary secondary secondary info warning danger
|
|
|
- */
|
|
|
- 'color' => 'info',
|
|
|
+ /*
|
|
|
+ |--------------------------------------------------------------------------
|
|
|
+ | Application Skin
|
|
|
+ |--------------------------------------------------------------------------
|
|
|
+ |
|
|
|
+ | This value is the skin of admin pages.
|
|
|
+ | @see https://adminlte.io/docs/2.4/layout
|
|
|
+ |
|
|
|
+ | Supported:
|
|
|
+ | "skin-blue", "skin-blue-light", "skin-yellow", "skin-yellow-light",
|
|
|
+ | "skin-green", "skin-green-light", "skin-purple", "skin-purple-light",
|
|
|
+ | "skin-red", "skin-red-light", "skin-black", "skin-black-light".
|
|
|
+ |
|
|
|
+ */
|
|
|
+ 'skin' => 'skin-blue-light',
|
|
|
|
|
|
- /*
|
|
|
- |--------------------------------------------------------------------------
|
|
|
- | Logo backgroud color.
|
|
|
- |--------------------------------------------------------------------------
|
|
|
- |
|
|
|
- | Available color options:
|
|
|
- | primary secondary secondary info warning danger black gray-dark gray
|
|
|
- | light indigo navy purple fuchsia pink maroon orange lime teal olive
|
|
|
- |
|
|
|
- */
|
|
|
- 'logo' => 'light',
|
|
|
- ],
|
|
|
+ /*
|
|
|
+ |--------------------------------------------------------------------------
|
|
|
+ | Application layout
|
|
|
+ |--------------------------------------------------------------------------
|
|
|
+ |
|
|
|
+ | This value is the layout of admin pages.
|
|
|
+ | @see https://adminlte.io/docs/2.4/layout
|
|
|
+ |
|
|
|
+ | Supported: "fixed", "layout-boxed", "layout-top-nav", "sidebar-collapse",
|
|
|
+ | "sidebar-mini".
|
|
|
+ |
|
|
|
+ */
|
|
|
+ 'layout' => ['sidebar-mini'],
|
|
|
|
|
|
/*
|
|
|
|--------------------------------------------------------------------------
|
| xqd
@@ -285,7 +300,7 @@ return [
|
|
|
| This value is used to set the background image of login page.
|
|
|
|
|
|
|
*/
|
|
|
- 'login_background_image' => '',
|
|
|
+ 'login_background_image' => '/img/bg.jpg',
|
|
|
|
|
|
/*
|
|
|
|--------------------------------------------------------------------------
|
| xqd
@@ -308,6 +323,15 @@ return [
|
|
|
*/
|
|
|
'show_environment' => true,
|
|
|
|
|
|
+ /*
|
|
|
+ |--------------------------------------------------------------------------
|
|
|
+ | Menu bind to permission
|
|
|
+ |--------------------------------------------------------------------------
|
|
|
+ |
|
|
|
+ | whether enable menu bind to a permission
|
|
|
+ */
|
|
|
+ 'menu_bind_permission' => true,
|
|
|
+
|
|
|
/*
|
|
|
|--------------------------------------------------------------------------
|
|
|
| Enable default breadcrumb
|
| xqd
@@ -331,6 +355,13 @@ return [
|
|
|
|
|
|
],
|
|
|
|
|
|
+ /*
|
|
|
+ |--------------------------------------------------------------------------
|
|
|
+ | Enable/Disable sidebar menu search
|
|
|
+ |--------------------------------------------------------------------------
|
|
|
+ */
|
|
|
+ 'enable_menu_search' => true,
|
|
|
+
|
|
|
/*
|
|
|
|--------------------------------------------------------------------------
|
|
|
| Alert message that will displayed on top of the page.
|
| xqd
@@ -340,10 +371,10 @@ return [
|
|
|
|
|
|
/*
|
|
|
|--------------------------------------------------------------------------
|
|
|
- | The global Table action display class.
|
|
|
+ | The global Grid action display class.
|
|
|
|--------------------------------------------------------------------------
|
|
|
*/
|
|
|
- 'table_action_class' => \Encore\Admin\Table\Displayers\DropdownActions::class,
|
|
|
+ 'grid_action_class' => \Encore\Admin\Grid\Displayers\DropdownActions::class,
|
|
|
|
|
|
/*
|
|
|
|--------------------------------------------------------------------------
|
| xqd
@@ -365,6 +396,40 @@ return [
|
|
|
|
|
|
|
*/
|
|
|
'extensions' => [
|
|
|
+ 'latlong' => [
|
|
|
+
|
|
|
+ // Whether to enable this extension, defaults to true
|
|
|
+ 'enable' => true,
|
|
|
+
|
|
|
+ // Specify the default provider
|
|
|
+ 'default' => 'tencent',
|
|
|
+
|
|
|
+ // According to the selected provider above, fill in the corresponding api_key
|
|
|
+ 'providers' => [
|
|
|
+
|
|
|
+ 'google' => [
|
|
|
+ 'api_key' => '',
|
|
|
+ ],
|
|
|
|
|
|
+ 'yadex' => [
|
|
|
+ 'api_key' => '',
|
|
|
+ ],
|
|
|
+
|
|
|
+ 'baidu' => [
|
|
|
+ 'api_key' => 'xck5u2lga9n1bZkiaXIHtMufWXQnVhdx',
|
|
|
+ ],
|
|
|
+
|
|
|
+ 'tencent' => [
|
|
|
+ 'api_key' => 'KCFBZ-UOC3I-CAKGB-5FHGL-4G46Z-XJBC4',
|
|
|
+ ],
|
|
|
+
|
|
|
+ 'amap' => [
|
|
|
+ 'api_key' => '3693fe745aea0df8852739dac08a22fb',
|
|
|
+ ],
|
|
|
+ ]
|
|
|
+ ],
|
|
|
+ 'multitenancy' => [
|
|
|
+ 'tenancy' => config_path('tenancy.php'),
|
|
|
+ ]
|
|
|
],
|
|
|
];
|