Get your next remote job on LaraJobs.
β†’

Laravel Dropbox Driver package: how to install and use it

Laravel Dropbox Driver package: how to install and use it

Adding a new disk in the storage is easy. The only things I did was:

Requirements

Laravel Dropbox Driver requires:

  • PHP 8.1+
  • Laravel 9+

Installation

To install Laravel Dropbox Driver, run the command below:

composer require benjamincrozat/laravel-dropbox-driver

Usage in your project

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

Get a token from Dropbox

Log in to your Dropbox account and create a new application to generate your access token.

https://www.dropbox.com/developers/apps/create

Apps creation on Dropbox.

License

Take this package and do whatever the f you want with it. That’s basically what the WTFPL license says.

Be the first to comment!

Get help or share something of value with other readers!

Great deals for enterprise developers
The latest community links

Recommended articles

Laravel 10 is out! Here are every new features and changes.

Laravel 10 has been released on February 14, 2023. Let's dive into every relevant new features and changes.

Laravel 9: the mindful upgrade guide

I show you how to upgrade your Laravel 8 project to version 9 and help you decide whether the return on investment is worth it.

Laravel 10: the upgrade guide from version 9

I show you how to upgrade your Laravel 9 project to version 10 and help you decide whether the return on investment is worth it.

How to create a custom filesystem adapter in Laravel

Learn how to craft your own filesystem adapter in Laravel.

Laravel retrospective: what changed since version 5.8?

Dive into the history of Laravel. If you went away for some time, this is the right place to resume your journey.

20+ Laravel best practices, tips and tricks to use in 2024

Learning a framework can be overwhelming, but time and execution will make you a master. Here are some best practices to help you toward your goal.

A complete history of Laravel's versions (2011-2024)

What's the current version of Laravel? Is there any LTS release you can rely on? And what about the history of the framework? Let's find out!

- / -