Skip to content

doghap/aliyun-oss-extention

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

aliyun-oss-extention

A simple extention of https://github.com/jacobcyl/Aliyun-oss-storage

Changes

Extended AliOssAdapter and added signUrl() function to generate signed url and getTemporaryUrl() function to generate temporary url using Storage::temporaryUrl().

Require

In your config/app.php add this line to providers array:

\App\Media\Providers\AliOssServiceProvider::class,

Usage

See Laravel doc for Storage Or you can learn here:

First you must use Storage facade

use Storage;

Then You can use temporaryUrl function of Storage

Storage::temporaryUrl('path/to/img.jpg', now()->addMinutes(5)) // 5 minutes
Storage::temporaryUrl('path/to/img.jpg', 60) // 60 second

Releases

No releases published

Packages

No packages published

Languages