Skip to content

ydalbj/laravel-bos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirement

  • PHP >= 7.1

Install

$ composer require ydalbj/laravel-bos

Configuration

Add bos configuration

  • Edit config\filesystems.php
    'disks' => [

        ...

        'bos' => [
            'driver' => 'bos',
            'bucket' => env('BOS_BUCKET'),
            'options' => [
                'credentials' => [
                    'ak' => env('BOS_KEY'),
                    'sk' => env('BOS_SECRET'),
                ],
                'endpoint' => env('BOS_ENDPOINT', 'http://bj.bcebos.com'),
            ]
        ]
    ]

Define environment variables

  • Edit .env
BOS_BUCKET=your bucket
BOS_KEY=your bos access key id
BOS_SECRET=your bos secret key id
BOS_ENDPOINT=your bos endpoint

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages