Package Data | |
---|---|
Maintainer Username: | link1st |
Maintainer Contact: | link12stl@gmail.com (link1st) |
Package Create Date: | 2017-07-15 |
Package Last Update: | 2018-01-18 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2025-01-27 15:00:37 |
Package Statistics | |
---|---|
Total Downloads: | 118 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 2 |
Total Watchers: | 2 |
Total Forks: | 1 |
Total Open Issues: | 0 |
金山云存储
加载包
"link1st/laravel-ks3": "dev-master"
或
composer require link1st/laravel-ks3
在配置文件中添加 config/app.php
'providers' => [
/**
* 添加供应商
*/
link1st\Ks3\Ks3ServiceProvider::class,
],
'aliases' => [
/**
* 添加别名
*/
'Ks3' => link1st\Ks3\Facades\Ks3::class,
],
生成配置文件
php artisan vendor:publish
设置金山云的参数 config/ks3.php
$file_path
本地文件路径$new_file_name
上传以后新的文件名\Ks3::putObjectByFile($file_path,$new_file_name);