如何在 laravel 库中添加 laravel 版本更新或 PHP 版本更新时未删除的自定义方法,我正在使用 Cloudinary 库“https://github.com/jrm2k6/cloudder”,我需要添加一个自定义函数包含在库中。
public function uploadLargeVideo($source, $publicId = null, $uploadOptions = array(), $tags = array())
{
$options = array_merge($uploadOptions, ['resource_type' => 'video']);
return $this->upload_large($source, $publicId, $options, $tags);
}