Skip to content

Drummi42/laravel-selectel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

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');

And use: https://laravel.com/docs/5.6/filesystem

About

This is package for use Selectel as CDN service

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%