jeylabs / laravel-dropbox-storage-driver
Dropbox storage driver for Laravel.
1.0.2
2017-04-06 06:33 UTC
Requires
- php: >=5.6.4
- laravel/framework: ^5.0
- league/flysystem-dropbox: ^1.0
Requires (Dev)
- orchestra/testbench: ^3.0
- phpunit/phpunit: ^5.0
This package is auto-updated.
Last update: 2024-11-29 04:52:20 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.