AdminLTE:在供应商中配置?

问题描述 投票:0回答:1

在我正在开发的当前 Web 项目中,我有一个 adminlte 预加载器,它始终位于页面顶部,并且只显示一个白色条,我决定将其删除,但除了在配置文件中之外找不到任何地方位于供应商(/vendor/jeroennoten/laravel-adminlte/config/adminlte.php)中,我可以使用布尔值禁用预加载器,是否有办法在供应商之外执行此操作?为什么供应商首先有一个配置文件,知道它会在下一次作曲家更新时被替换?

有关详细信息,这里是供应商中有关预加载器的配置文件部分:

    /*
    |--------------------------------------------------------------------------
    | Preloader Animation
    |--------------------------------------------------------------------------
    |
    | Here you can change the preloader animation configuration. Currently, two
    | modes are supported: 'fullscreen' for a fullscreen preloader animation
    | and 'cwrapper' to attach the preloader animation into the content-wrapper
    | element and avoid overlapping it with the sidebars and the top navbar.
    |
    | For detailed instructions you can look the preloader section here:
    | https://github.com/jeroennoten/Laravel-AdminLTE/wiki/Basic-Configuration
    |
    */

    'preloader' => [
        'enabled' => true,
        'mode' => 'fullscreen',
        'img' => [
            'path' => 'vendor/adminlte/dist/img/AdminLTELogo.png',
            'alt' => 'AdminLTE Preloader Image',
            'effect' => 'animation__shake',
            'width' => 60,
            'height' => 60,
        ],
    ],

抱歉,如果这听起来很愚蠢,我对 adminlte 和 laravel 还很陌生。

php laravel composer-php adminlte vendor
1个回答
0
投票

该库的文档位于 https://github.com/jeroennoten/Laravel-AdminLTE/wiki/Installation 提到运行

php artisan adminlte:install
将配置文件发布到
config/adminlte.php
目录。

https://github.com/jeroennoten/Laravel-AdminLTE/wiki/Basic-Configuration 中,它还提到您可以使用

--only=config
选项运行它以仅发布配置文件。

php artisan adminlte:install --only=config

如果这不起作用,请尝试运行

php artisan vendor:publish

它应该显示名称/服务提供商的列表。找到该库的名称/服务提供商并发布它。

如果所有这些都不起作用,请尝试将

adminlte.php
配置文件复制到您的
config
目录,然后 laravel 应该从您的
config
目录而不是
vendor
目录中读取

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.