src/SelectelServiceProvider.php
public function boot()
    {
        Storage::extend('selectel', function ($app, $config) {
            $api = new ApiClient($config['username'], $config['password']);
            $api->authenticate();

            $storage = new CloudStorage($api);
            $container = $storage->getContainer($config['container']);

            if (isset($config['container_url'])) {
                $container->setUrl($config['container_url']);
            }

            return new Filesystem(new SelectelAdapter($container));
        });
    }
public function boot()
    {
        Storage::extend('selectel', function ($app, $config) {
            $api = new ApiClient($config['username'], $config['password']);
            $api->authenticate();

            $storage = new CloudStorage($api);
            $container = $storage->getContainer($config['container']);

            if (isset($config['container_url'])) {
                $container->setUrl($config['container_url']);
            }

            return new Filesystem(new SelectelAdapter($container));
        });
    }
Bootstrap the application services.