一款基于阿里云官方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')