This is package for use Selectel as CDN service for Laravel 5.*
First, download package using Composer:
composer require reg2005/laravel-selectel
Add to config/filesystems.php in "disks" array:
'selectel' => [
'driver' => 'selectel',
'username' => 'container-username',
'key' => 'container-password',
'container' => 'container-name',
'endpoint' => 'https://auth.selcdn.ru',
'region' => 'aws-global',
],
set "default", or "cloud" selectel storage.
Add to config/app.php in service provider section:
Reg2005\LaravelSelectel\SelectelServiceProvider::class,
Change in SelectelServiceProvider.php
$store = $client->objectStoreService('swift', 'common');
to
$store = $client->objectStoreService('swift', 'ru-1');