n1creator/yandex-object-storage-provider

Just add ServiceProvider for YandexObjectStorage

1.1.5 2022-12-26 14:10 UTC

This package is auto-updated.

Last update: 2024-04-26 17:14:49 UTC


README

Just add service provider for yandex cloud

Install

Via composer:

composer require n1creator/yandex-object-storage-provider

Usage

After installing this package add the following code to your config/filesystems.php:

'yandex' => [
            'driver' => 'yandexcloud',
            'key' => 'your-key',
            'secret' => 'your-secret',
            'bucket' => 'bucket-name',
            'region' => 'us-east-1',
],

And then you can use

$disk = Storage::disk('yandex');

to get your yandex cloud storage instance

Don't forget to add the Flipe23\YandexObjectStorage\YandexObjectStorageProvider to your $providers array if your laravel version lower than 5.5