lumen 添加配置

app同级目录新建config目录

添加配置文件

bootstrap/app.php里面加载

$app->configure('options');

使用
$router->get('/', function () use ($router) {
return config('options.author');
});
原文地址:https://www.cnblogs.com/brady-wang/p/12713426.html