$file) { $result['path'][$key]=$file->store($savePath, 'public'); $result['url'][$key]=upload_asset($result['path'][$key]); $result['name'][$key]=$file->getClientOriginalName(); $result['time'][$key]=date('Y-m-d H:i:s', time()); } if ($uploadTag) { Cache::put($uploadTag, $result, 10); } return $result; } }