agency.php 6.3 KB
<?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
        ]
    ],

];