jeylabs/laravel-dropbox-storage-driver

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

Dropbox storage driver for Laravel.

1.0.2 2017-04-06 06:33 UTC

This package is auto-updated.

Last update: 2021-08-29 01:29:44 UTC


README

Dropbox storage driver for Laravel.

Installation

composer require jeylabs/laravel-dropbox-storage-driver

Usage

In your config/app.php, add the service provider:

'providers' => [

    Jeylabs\Laravel\DropboxDriver\ServiceProvider::class,

],

Next, add the following in app/filesystems.php:

'disks' => [

    'dropbox' => [
        'driver' => 'dropbox',
        'secret' => env('DROPBOX_SECRET'),
        'token' => env('DROPBOX_TOKEN'),
        'prefix' => env('DROPBOX_PREFIX'),
        'app_url' => env('DROPBOX_APP_URL'),
    ],

],

Then, in your .env file:

DROPBOX_SECRET=your_app_secret_key
DROPBOX_TOKEN=your_access_token
DROPBOX_PREFIX=your_prefix
DROPBOX_APP_URL=your_application_url

Dealing with Dropbox for the first time? Here's the link to create your first application and generate your app secret key and access token.

License

MIT