webman 默认不支持config目录下自定义目录,加上这个代码就解决问题了。

config 目录下创建一个extra.php 加上下面的代码。
config 目录下创建extra 目录,目录下创建自己的配置文件就行了。
// config/extra.php
<?php
    $path = config_path('extra');
    $res = [];
    try {
        foreach ( scandir($path) as $item) {
            if( pathinfo($item,PATHINFO_EXTENSION)=='php'){{
            }
                $file_path = $path.'/'.$item;
                $file_name = pathinfo($item,PATHINFO_FILENAME);
                $res[$file_name] = include  $file_path;
            }
        }
    }catch (Exception $e){}
    return $res;//获取 
//.test是在extra下面的php文件名
$test_config  = config('extra.test')
骚操作,但有用