Lumen 加载根目录配置文件
Lumen 版本: 5.3
- 在根目录创建 config 目录
- 在 config 目录中新建配置文件
- 在
bootstrap/app.php
中加载配置文件
1<?php
2
3// bootstrap/app.php
4$app->configure('fileName');
5
6// Example: $app->configure('mail');
Lumen 版本: 5.3
bootstrap/app.php
中加载配置文件1<?php
2
3// bootstrap/app.php
4$app->configure('fileName');
5
6// Example: $app->configure('mail');