| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368 | <?phpreturn [    /*    |--------------------------------------------------------------------------    | dcat-admin name    |--------------------------------------------------------------------------    |    | This value is the name of dcat-admin, This setting is displayed on the    | login page.    |    */    'name' => 'Dcat Admin',    /*    |--------------------------------------------------------------------------    | 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="/vendor/dcat-admin/images/logo.png" width="35">  Dcat Admin',    /*    |--------------------------------------------------------------------------    | 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="/vendor/dcat-admin/images/logo.png">',    /*    |--------------------------------------------------------------------------    | dcat-admin favicon    |--------------------------------------------------------------------------    |    */    'favicon' => null,    /*     |--------------------------------------------------------------------------     | 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' => [        'domain' => env('ADMIN_ROUTE_DOMAIN'),        'prefix' => env('ADMIN_ROUTE_PREFIX', 'admin'),        'namespace' => 'App\\Admin\\Controllers',        'middleware' => ['web', 'admin'],        'enable_session_middleware' => false,    ],    /*    |--------------------------------------------------------------------------    | 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',        ],        'enable_session_middleware' => false,    ],    /*    |--------------------------------------------------------------------------    | The global Grid setting    |--------------------------------------------------------------------------    */    'grid' => [        // The global Grid action display class.        'grid_action_class' => Dcat\Admin\Grid\Displayers\DropdownActions::class,        // The global Grid batch action display class.        'batch_action_class' => Dcat\Admin\Grid\Tools\BatchActions::class,        // The global Grid pagination display class.        'paginator_class' => Dcat\Admin\Grid\Tools\Paginator::class,        'actions' => [            'view' => Dcat\Admin\Grid\Actions\Show::class,            'edit' => Dcat\Admin\Grid\Actions\Edit::class,            'quick_edit' => Dcat\Admin\Grid\Actions\QuickEdit::class,            'delete' => Dcat\Admin\Grid\Actions\Delete::class,            'batch_delete' => Dcat\Admin\Grid\Tools\BatchDelete::class,        ],        // The global Grid column selector setting.        'column_selector' => [            'store' => Dcat\Admin\Grid\ColumnSelector\SessionStore::class,            'store_params' => [                'driver' => 'file',            ],        ],    ],    /*    |--------------------------------------------------------------------------    | dcat-admin helpers setting.    |--------------------------------------------------------------------------    */    'helpers' => [        'enable' => 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,        // Whether enable role bind to menu.        'role_bind_menu' => true,        // Whether enable permission bind to menu.        'permission_bind_menu' => true,        'default_icon' => 'feather icon-circle',    ],    /*    |--------------------------------------------------------------------------    | 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' => 'public',        // Image and file upload path under the disk above.        'directory' => [            'image' => 'images',            'file'  => '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.        'role_users_table'       => 'admin_role_users',        'role_permissions_table' => 'admin_role_permissions',        'role_menu_table'        => 'admin_role_menu',        'permission_menu_table'  => 'admin_permission_menu',        'settings_table'         => 'admin_settings',        'extensions_table'       => 'admin_extensions',        'extension_histories_table' => 'admin_extension_histories',    ],    /*    |--------------------------------------------------------------------------    | Application layout    |--------------------------------------------------------------------------    |    | This value is the layout of admin pages.    */    'layout' => [        // default, blue, blue-light, green        'color' => 'default',        // sidebar-separate        'body_class' => [],        'horizontal_menu' => false,        'sidebar_collapsed' => false,        // light, primary, dark        'sidebar_style' => 'light',        'dark_mode_switch' => false,        // bg-primary, bg-info, bg-warning, bg-success, bg-danger, bg-dark        'navbar_color' => '',    ],    /*    |--------------------------------------------------------------------------    | 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    |--------------------------------------------------------------------------    */    'extension' => [        // When you use command `php artisan admin:ext-make` to generate extensions,        // the extension files will be generated in this directory.        'dir' => base_path('dcat-admin-extensions'),    ],];
 |