benjamincrozat / laravel-dropbox-driver
Dropbox driver for Laravel.
Installs: 89 527
Dependents: 2
Suggesters: 0
Security: 0
Stars: 42
Watchers: 4
Forks: 8
Open Issues: 1
Requires
- php: >=7.1
- spatie/flysystem-dropbox: ^1.0
Requires (Dev)
- orchestra/testbench: 3.*
- phpunit/phpunit: 5.*|6.*|7.*
README
Laravel Dropbox Driver
Dropbox driver for Laravel.
Adding a new disk in the storage is pretty easy. The only things I did were to copy and paste code from the documentation and made it a package: https://laravel.com/docs/filesystem#custom-filesystems
Requirements
- PHP 7.1+
- Laravel 5.1+
Installation
composer require benjamincrozat/laravel-dropbox-driver
Usage
If you're on Laravel 5.4 or older, add the service provider in your config/app.php
file:
'providers' => [ BC\Laravel\DropboxDriver\ServiceProvider::class, ],
Next, add the following in app/filesystems.php
:
'disks' => [ 'dropbox' => [ 'driver' => 'dropbox', 'token' => env('DROPBOX_TOKEN'), ], ],
Then, in your .env
file:
DROPBOX_TOKEN=your_access_token
Dealing with Dropbox for the first time? Here's the link to create your first application and generate your access token.