You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							394 lines
						
					
					
						
							12 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							394 lines
						
					
					
						
							12 KiB
						
					
					
				
								<?php
							 | 
						|
								
							 | 
						|
								return [
							 | 
						|
								
							 | 
						|
								    /*
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    | dcat-admin name
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    |
							 | 
						|
								    | This value is the name of dcat-admin, This setting is displayed on the
							 | 
						|
								    | login page.
							 | 
						|
								    |
							 | 
						|
								    */
							 | 
						|
								    'name' => '链街后台管理系统',
							 | 
						|
								
							 | 
						|
								    /*
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    | dcat-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' => '<img src="/vendors/dcat-admin/images/logo.png" width="35">  链街',
							 | 
						|
								    'logo' => '<img src="/vendors/dcat-admin/images/logo-head.png" width="35">  <span style="color:#c10002;vertical-align:bottom;"> 链街 </span>',
							 | 
						|
								
							 | 
						|
								    /*
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    | dcat-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' => '<img src="/vendors/dcat-admin/images/logo.png">',
							 | 
						|
								
							 | 
						|
								    /*
							 | 
						|
								     |--------------------------------------------------------------------------
							 | 
						|
								     | User default avatar
							 | 
						|
								     |--------------------------------------------------------------------------
							 | 
						|
								     |
							 | 
						|
								     | Set a default avatar for newly created users.
							 | 
						|
								     |
							 | 
						|
								     */
							 | 
						|
								    'default_avatar' => '@admin/images/default-avatar.jpg',
							 | 
						|
								
							 | 
						|
								    /*
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    | dcat-admin route settings
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    |
							 | 
						|
								    | The routing configuration of the admin page, including the path prefix,
							 | 
						|
								    | the controller namespace, and the default middleware. If you want to
							 | 
						|
								    | access through the root path, just set the prefix to empty string.
							 | 
						|
								    |
							 | 
						|
								    */
							 | 
						|
								    'route' => [
							 | 
						|
								
							 | 
						|
								        'prefix' => env('ADMIN_ROUTE_PREFIX', 'admin'),
							 | 
						|
								
							 | 
						|
								        'namespace' => 'App\\Admin\\Controllers',
							 | 
						|
								
							 | 
						|
								        'middleware' => ['web', 'admin'],
							 | 
						|
								    ],
							 | 
						|
								
							 | 
						|
								    /*
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    | dcat-admin install directory
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    |
							 | 
						|
								    | The installation directory of the controller and routing configuration
							 | 
						|
								    | files of the administration page. The default is `app/Admin`, which must
							 | 
						|
								    | be set before running `artisan admin::install` to take effect.
							 | 
						|
								    |
							 | 
						|
								    */
							 | 
						|
								    'directory' => app_path('Admin'),
							 | 
						|
								
							 | 
						|
								    /*
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    | dcat-admin html title
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    |
							 | 
						|
								    | Html title for all pages.
							 | 
						|
								    |
							 | 
						|
								    */
							 | 
						|
								    'title' => 'Admin',
							 | 
						|
								
							 | 
						|
								    /*
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    | Assets hostname
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    |
							 | 
						|
								   */
							 | 
						|
								    'assets_server' => env('ADMIN_ASSETS_SERVER'),
							 | 
						|
								
							 | 
						|
								    /*
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    | Access via `https`
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    |
							 | 
						|
								    | If your page is going to be accessed via https, set it to `true`.
							 | 
						|
								    |
							 | 
						|
								    */
							 | 
						|
								    'https' => env('ADMIN_HTTPS', false),
							 | 
						|
								
							 | 
						|
								    /*
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    | dcat-admin auth setting
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    |
							 | 
						|
								    | Authentication settings for all admin pages. Include an authentication
							 | 
						|
								    | guard and a user provider setting of authentication driver.
							 | 
						|
								    |
							 | 
						|
								    | You can specify a controller for `login` `logout` and other auth routes.
							 | 
						|
								    |
							 | 
						|
								    */
							 | 
						|
								    'auth' => [
							 | 
						|
								        'enable' => true,
							 | 
						|
								
							 | 
						|
								        'controller' => App\Admin\Controllers\AuthController::class,
							 | 
						|
								
							 | 
						|
								        'guard' => 'admin',
							 | 
						|
								
							 | 
						|
								        'guards' => [
							 | 
						|
								            'admin' => [
							 | 
						|
								                'driver'   => 'session',
							 | 
						|
								                'provider' => 'admin',
							 | 
						|
								            ],
							 | 
						|
								        ],
							 | 
						|
								
							 | 
						|
								        'providers' => [
							 | 
						|
								            'admin' => [
							 | 
						|
								                'driver' => 'eloquent',
							 | 
						|
								                'model'  => Dcat\Admin\Models\Administrator::class,
							 | 
						|
								            ],
							 | 
						|
								        ],
							 | 
						|
								
							 | 
						|
								        // Add "remember me" to login form
							 | 
						|
								        'remember' => true,
							 | 
						|
								
							 | 
						|
								        // All method to path like: auth/users/*/edit
							 | 
						|
								        // or specific method to path like: get:auth/users.
							 | 
						|
								        'except' => [
							 | 
						|
								            'auth/login',
							 | 
						|
								            'auth/logout',
							 | 
						|
								        ],
							 | 
						|
								
							 | 
						|
								    ],
							 | 
						|
								
							 | 
						|
								    'grid' => [
							 | 
						|
								
							 | 
						|
								        /*
							 | 
						|
								        |--------------------------------------------------------------------------
							 | 
						|
								        | The global Grid action display class.
							 | 
						|
								        |--------------------------------------------------------------------------
							 | 
						|
								        */
							 | 
						|
								        //'grid_action_class' => Dcat\Admin\Grid\Displayers\DropdownActions::class,
							 | 
						|
								        'grid_action_class' => Dcat\Admin\Grid\Displayers\Actions::class,
							 | 
						|
								        //'grid_action_class' => Dcat\Admin\Grid\Displayers\ContextMenuActions::class,
							 | 
						|
								    ],
							 | 
						|
								
							 | 
						|
								    /*
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    | dcat-admin helpers setting.
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    */
							 | 
						|
								    'helpers' => [
							 | 
						|
								        'enable' => env('APP_ENV')=='prod'? false:true,
							 | 
						|
								    ],
							 | 
						|
								
							 | 
						|
								    /*
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    | dcat-admin permission setting
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    |
							 | 
						|
								    | Permission settings for all admin pages.
							 | 
						|
								    |
							 | 
						|
								    */
							 | 
						|
								    'permission' => [
							 | 
						|
								        // Whether enable permission.
							 | 
						|
								        'enable' => true,
							 | 
						|
								
							 | 
						|
								        // All method to path like: auth/users/*/edit
							 | 
						|
								        // or specific method to path like: get:auth/users.
							 | 
						|
								        'except' => [
							 | 
						|
								            '/',
							 | 
						|
								            'auth/login',
							 | 
						|
								            'auth/logout',
							 | 
						|
								            'auth/setting',
							 | 
						|
								        ],
							 | 
						|
								
							 | 
						|
								    ],
							 | 
						|
								
							 | 
						|
								    /*
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    | dcat-admin menu setting
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    |
							 | 
						|
								    */
							 | 
						|
								    'menu' => [
							 | 
						|
								        'cache' => [
							 | 
						|
								            // enable cache or not
							 | 
						|
								            'enable' => false,
							 | 
						|
								            'store'  => 'file',
							 | 
						|
								        ],
							 | 
						|
								
							 | 
						|
								        // Whether enable menu bind to a permission.
							 | 
						|
								        'bind_permission' => true,
							 | 
						|
								
							 | 
						|
								    ],
							 | 
						|
								
							 | 
						|
								    /*
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    | dcat-admin upload setting
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    |
							 | 
						|
								    | File system configuration for form upload files and images, including
							 | 
						|
								    | disk and upload path.
							 | 
						|
								    |
							 | 
						|
								    */
							 | 
						|
								    'upload' => [
							 | 
						|
								
							 | 
						|
								        // Disk in `config/filesystem.php`.
							 | 
						|
								        'disk' => 'oss',
							 | 
						|
								
							 | 
						|
								        // Image and file upload path under the disk above.
							 | 
						|
								        'directory' => [
							 | 
						|
								            'image' => 'mp_images',
							 | 
						|
								            'file'  => 'mp_files',
							 | 
						|
								        ],
							 | 
						|
								    ],
							 | 
						|
								
							 | 
						|
								    /*
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    | dcat-admin database settings
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    |
							 | 
						|
								    | Here are database settings for dcat-admin builtin model & tables.
							 | 
						|
								    |
							 | 
						|
								    */
							 | 
						|
								    'database' => [
							 | 
						|
								
							 | 
						|
								        // Database connection for following tables.
							 | 
						|
								        'connection' => '',
							 | 
						|
								
							 | 
						|
								        // User tables and model.
							 | 
						|
								        'users_table' => 'admin_users',
							 | 
						|
								        'users_model' => Dcat\Admin\Models\Administrator::class,
							 | 
						|
								
							 | 
						|
								        // Role table and model.
							 | 
						|
								        'roles_table' => 'admin_roles',
							 | 
						|
								        'roles_model' => Dcat\Admin\Models\Role::class,
							 | 
						|
								
							 | 
						|
								        // Permission table and model.
							 | 
						|
								        'permissions_table' => 'admin_permissions',
							 | 
						|
								        'permissions_model' => Dcat\Admin\Models\Permission::class,
							 | 
						|
								
							 | 
						|
								        // Menu table and model.
							 | 
						|
								        'menu_table' => 'admin_menu',
							 | 
						|
								        'menu_model' => Dcat\Admin\Models\Menu::class,
							 | 
						|
								
							 | 
						|
								        // Pivot table for table above.
							 | 
						|
								        'operation_log_table'    => 'admin_operation_log',
							 | 
						|
								        'role_users_table'       => 'admin_role_users',
							 | 
						|
								        'role_permissions_table' => 'admin_role_permissions',
							 | 
						|
								        'role_menu_table'        => 'admin_role_menu',
							 | 
						|
								        'permission_menu_table'  => 'admin_permission_menu',
							 | 
						|
								    ],
							 | 
						|
								
							 | 
						|
								    /*
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    | User operation log setting
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    |
							 | 
						|
								    | By setting this option to open or close operation log in dcat-admin.
							 | 
						|
								    |
							 | 
						|
								    */
							 | 
						|
								    'operation_log' => [
							 | 
						|
								
							 | 
						|
								        'enable' => true,
							 | 
						|
								
							 | 
						|
								        // Only logging allowed methods in the list
							 | 
						|
								        'allowed_methods' => ['GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'CONNECT', 'OPTIONS', 'TRACE', 'PATCH'],
							 | 
						|
								
							 | 
						|
								        'secret_fields' => [
							 | 
						|
								            'password',
							 | 
						|
								            'password_confirmation',
							 | 
						|
								        ],
							 | 
						|
								
							 | 
						|
								        // Routes that will not log to database.
							 | 
						|
								        // All method to path like: auth/logs/*/edit
							 | 
						|
								        // or specific method to path like: get:auth/logs.
							 | 
						|
								        'except' => [
							 | 
						|
								            'auth/logs*',
							 | 
						|
								        ],
							 | 
						|
								    ],
							 | 
						|
								
							 | 
						|
								    /*
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    | Admin map field provider
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    |
							 | 
						|
								    | Supported: "tencent", "google", "yandex".
							 | 
						|
								    |
							 | 
						|
								    */
							 | 
						|
								    'map_provider' => 'tencent',
							 | 
						|
								
							 | 
						|
								    /*
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    | Application layout
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    |
							 | 
						|
								    | This value is the layout of admin pages.
							 | 
						|
								    */
							 | 
						|
								    'layout' => [
							 | 
						|
								        // indigo, blue, blue-light, blue-dark, green
							 | 
						|
								        'color' => 'green',
							 | 
						|
								
							 | 
						|
								        //'body_class' => 'dark-mode',
							 | 
						|
								        'body_class' => '',
							 | 
						|
								
							 | 
						|
								        'sidebar_collapsed' => false,
							 | 
						|
								
							 | 
						|
								        'sidebar_dark' => false,
							 | 
						|
								
							 | 
						|
								        'dark_mode_switch' => false,
							 | 
						|
								
							 | 
						|
								        // bg-primary, bg-info, bg-warning, bg-success, bg-danger, bg-dark
							 | 
						|
								        'navbar_color' => 'bg-primary',
							 | 
						|
								    ],
							 | 
						|
								
							 | 
						|
								    /*
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    | The exception handler class
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    |
							 | 
						|
								    */
							 | 
						|
								    'exception_handler' => \Dcat\Admin\Exception\Handler::class,
							 | 
						|
								
							 | 
						|
								    /*
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    | Enable default breadcrumb
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    |
							 | 
						|
								    | Whether enable default breadcrumb for every page content.
							 | 
						|
								    */
							 | 
						|
								    'enable_default_breadcrumb' => true,
							 | 
						|
								
							 | 
						|
								    /*
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    | Extension Directory
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    |
							 | 
						|
								    | When you use command `php artisan admin:extend` to generate extensions,
							 | 
						|
								    | the extension files will be generated in this directory.
							 | 
						|
								    */
							 | 
						|
								    'extension_dir' => app_path('Admin/Extensions'),
							 | 
						|
								
							 | 
						|
								    /*
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    | Settings for extensions.
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    |
							 | 
						|
								    | You can find all available extensions here
							 | 
						|
								    | https://github.com/dcat-admin-extensions.
							 | 
						|
								    |
							 | 
						|
								    */
							 | 
						|
								    'extensions' => [
							 | 
						|
								
							 | 
						|
								    ],
							 | 
						|
								
							 | 
						|
								    /*
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    | Settings for store user.
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    |
							 | 
						|
								    */
							 | 
						|
								    'setting' => [
							 | 
						|
								        'authkey' => '5705e957'
							 | 
						|
								    ],
							 | 
						|
								
							 | 
						|
								    /*
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    | delivery for order.
							 | 
						|
								    |--------------------------------------------------------------------------
							 | 
						|
								    | 订单配送
							 | 
						|
								    */
							 | 
						|
								    'delivery' => [
							 | 
						|
								        'base_fee' => 3.5 // 配送基础费用
							 | 
						|
								    ],
							 | 
						|
								];
							 |