storage 文件存储
use Illuminate\Support\Facades\Storage;
//建立存储
Storage::disk('public')->makeDirectory(date('Y-m'));
// public为config/filesystems.php存的配置,七牛云、本地、或者其他的
$bool = Storage::disk('public')->put($filename, file_get_contents($realPath));
$fileStr = Storage::disk('public')->get($fileName);//获取文件内容
//获取目录文件,两个返回值有差别,第一个带public
$files = Storage::allFiles('public');
$files = Storage::disk('public')->allFiles();
文档 https://learnku.com/docs/laravel/5.5/files...