update: 获取上传默认驱动

This commit is contained in:
JaguarJack 2020-07-29 07:29:42 +08:00
parent d1a42637fe
commit 230ea26a1b

View File

@ -27,11 +27,11 @@ class CatchUpload
public const QIQNIU = 'qiniu'; public const QIQNIU = 'qiniu';
/** /**
* 本地 * 驱动
* *
* @var string * @var string
*/ */
protected $driver = 'local'; protected $driver;
/** /**
* 本地 * 本地
@ -119,7 +119,11 @@ class CatchUpload
*/ */
protected function getDriver(): string protected function getDriver(): string
{ {
return $this->driver; if ($this->driver) {
return $this->driver;
}
return \config('filesystem.default');
} }
/** /**