laravel 文件上传总结

调用 store 方法会生成唯一的 ID 来作为文件名,如果想获取原件本来的名称可以使用

$file = $request->file('file');

$file->getClientOriginalName();
原文地址:https://www.cnblogs.com/lxwphp/p/10889689.html