Lumen 加载根目录配置文件

Lumen 版本: 5.3

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

参考&扩展