¶Lumen upload file
我的做法是在 config
中添加一個 upload.php
文件 ,添加
1 | <?php |
在 bootstrap/app.php
中 添加一行 $app->configure('upload');
上傳的代碼如:
1 | public function upload(Request $request) |
¶Lumen use config
在 bootstrap/app.php
中,
添加 $app->configure('times');
,就會加載到 config/times.php
這個配置文件了