Laravel Dropbox Driver
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.