Looking to hire Laravel developers? Try LaraJobs

laravel-bos maintained by ydalbj

Description
Laravel file system service provider for Baidu BOS storage
Author
Last update
2020/07/28 10:31 (dev-master)
License
Links
Downloads
11

Comments
comments powered by Disqus

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