- PHP >= 7.1
$ composer require ydalbj/laravel-bos
- 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'),
]
]
]
- 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