Git Product home page Git Product logo

laravel-object-storage's Introduction

A flysystem driver for fortrabbit's Object Storage

Install

The most recent version (2.x) is compatible with Laravel 9 and Flysystem 3.

# For laravel 9
composer require fortrabbit/laravel-object-storage

# For laravel 6,7,8
composer require fortrabbit/laravel-object-storage:^1.4

Configure the 'object-storage' driver

You are free to choose the disk name. In this example it is s3, but it's up to you.

# config/filesystems.php

// ...
'disks' => [
    's3' => [
        'driver' => 'object-storage'
    ]
],

Environment variables for Object Storage access are available automatically on fortrabbit. For local access you need to set them.

# local .env

OBJECT_STORAGE_KEY="{your-app-name}"
OBJECT_STORAGE_SECRET="{object-storage-secrect}"
OBJECT_STORAGE_REGION="{eu-west-1 or us-west-1} "
OBJECT_STORAGE_BUCKET="{your-app-name}"
OBJECT_STORAGE_SERVER="objects.{region}.frbit.com"
OBJECT_STORAGE_URL="https://{your-app-name}.objects.frb.io"

laravel-object-storage's People

Contributors

abenevaut avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.