oss 上传图片
1:composer require jacobcyl/ali-oss-storage:^2.1
2:Then in your config/app.php
add this line to providers array:
Jacobcyl\AliOSS\AliOssServiceProvider::class,
3:Add the following in config/filesystems.php:
'disks'=>[
...
'oss' => [
'driver' => 'oss',
'access_id' => '<Your Aliyun OSS AccessKeyId>',
'access_key' => '<Your Aliyun OSS AccessKeySecret>',
'bucket' => '<OSS bucket name>',
'endpoint' => '<the endpoint of OSS, E.g: oss-cn-hangzhou.aliyuncs.com | custom domain, E.g:img.abc.com>', // OSS 外网节点或自定义外部域名