定制 backtory/laravel-backtory-storage 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

backtory/laravel-backtory-storage

Composer 安装命令:

composer require backtory/laravel-backtory-storage

包简介

Backtory Storage Driver for Laravel framework

README 文档

README

A Backtory Storage filesystem for Laravel.

This package is a wrapper bridging backtory/storage-php into Laravel as an available storage disk.

Installation

composer require backtory/laravel-backtory-storage

Register the service provider in app.php (only in versions < 5.5)

'providers' => [
    // ...
    Backtory\Storage\Laravel\BacktoryStorageServiceProvider::class,
]

Add a new disk to your filesystems.php config

'backtory' => [
    'driver' => 'backtory',
    'X-Backtory-Authentication-Id' => '',
    'X-Backtory-Authentication-Key' => '',
    'X-Backtory-Storage-Id' => '',
    'domain' => '' // [optional]
],

Usage

$disk = Storage::disk('backtory');

// create a file
$disk->put('avatars/file.jpg', $fileContents);

// check if a file exists
$exists = $disk->exists('file.jpg');

// get file modification date
$time = $disk->lastModified('file1.jpg');

// copy a file
$disk->copy('old/file1.jpg', 'newLocaltion');

// move a file
$disk->move('old/file1.jpg', 'newLocation');

// get url to file
$url = $disk->url('folder/my_file.txt');

// See https://laravel.com/docs/5.5/filesystem for full list of available functionality

统计信息

  • 总下载量: 1.88k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-09-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固