PHP code example of jiaojie / laravel5-sina-storage
1. Go to this page and download the library: Download jiaojie/laravel5-sina-storage library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jiaojie / laravel5-sina-storage example snippets
"sina" => [
"driver" => "sina",
"access_key" => "YOUR_ACCESS_KEY",
"secret_key" => "YOUR_SECRET_KEY",
"use_ssl" => false,
"endpoint" => "上传的地址URL",
"bucket" => "指定的域名地址",
],
$disk = Storage::disk("sina");
$disk->put("finapp/js/$filename.js", file_get_contents($path));