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,9 +119,13 @@ class CatchUpload
*/ */
protected function getDriver(): string protected function getDriver(): string
{ {
if ($this->driver) {
return $this->driver; return $this->driver;
} }
return \config('filesystem.default');
}
/** /**
* set driver * set driver
* *