8000 GitHub - laravel24/laravel-dropbox-driver: Dropbox driver for Laravel.
[go: up one dir, main page]

Skip to content

laravel24/laravel-dropbox-driver

 
 

Repository files navigation

Build Status Latest Stable Version License Total Downloads

Laravel Dropbox Driver

Dropbox driver for Laravel.

Requirements

  • PHP 7.0+

If you're still on 5.6, you can just use the 1.x version.

Installation

composer require benjamincrozat/laravel-dropbox-driver

Usage

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

'providers' => [

    BC\Laravel\DropboxDriver\ServiceProvider::class,

],

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

'disks' => [

    'dropbox' => [
        'driver' => 'dropbox',
        'app_secret' => env('DROPBOX_APP_SECRET'),
        'token' => env('DROPBOX_TOKEN'),
    ],

],

Then, in your .env file:

DROPBOX_APP_SECRET=your_app_secret_key
DROPBOX_TOKEN=your_access_token

done try now

 Storage::disk('dropbox')->put('file.txt', 'Welcome Hello laravel');
 Storage::disk('dropbox')->delete('file.txt');
if (strlen((string) PHP_INT_MAX) < 1) {
  
}

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

WTFPL

About

Dropbox driver for Laravel.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%
0