public function imgeUpload(Request $request)
{
//生成的文件名是md5随机的文件名字
//$path=$request->file('wangEditorH5File')->storePublicly(md5(time()));

//下面生成的文件地址是: /storage/app/public/11/X9805TN3ADIfKcBLJWeDfWeAbmmYSC47mZHBNcKz.jpg
$path=$request->file('wangEditorH5File')->storePublicly(11);
return asset('storage/app/public/'.$path);//返回生成的文件的完整路径:
}

  

05-11 14:03