daviswwang/laraveloss is a Laravel package for laravel oss sdk.
It currently has 16 GitHub stars and 13 downloads on Packagist (latest version 1.0.5).
Install it with composer require daviswwang/laraveloss.
Discover more Laravel packages by daviswwang
or browse all Laravel packages to compare alternatives.
Last updated
一款基于阿里云官方oss SDK 适用于laravel 5.x的上传扩展包 注意User:fanxinyu为对象电脑用户名
composer require daviswwang/laraveloss
Run the following command to publish the package config file
php artisan vendor:public --provider="Daviswwang\LaravelOSS\LaravelServiceProvider"
You should now have a config/oss.php file that allows you to configure the basics of this package.
use Daviswwang\LaravelOSS\Facades\LaravelOSS;
$url = LaravelOSS::upload('webGF.png', storage_path('pdf/webGF.png'), 'image/png')