milind/laravel-dropbox-storage-driver

Dropbox storage driver for Laravel.

1.0.2 2017-04-06 06:33 UTC

This package is auto-updated.

Last update: 2024-04-19 18:00:33 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