Releases: dcblogdev/laravel-dropbox
Add support for Laravel 11
Add support for Laravel 10
v3.0.5 Add support for Laravel 10
added support for Laravel 9
v3.0.4 fixed merge conflict
added a move() method to the files() resource
Move accepts 4 params:
- $fromPath - provide the path for the existing folder/file
- $toPath - provide the new path for the existing golder/file must start with a /
- $autoRename - If there's a conflict, have the Dropbox server try to autorename the file to avoid the conflict. The default for this field is false.
- $allowOwnershipTransfer - Allow moves by owner even if it would result in an ownership transfer for the content being moved. This does not apply to copies. The default for this field is false.
Dropbox::files()->move($fromPath, $toPath, $autoRename = false, $allowOwnershipTransfer = false);
improved download, request a path, it will be downloaded.
v3.0.2 removed header from download.
Release of V3 - new methods and refresh tokens now supported
This major release has some breaking changes additional columns added to the migration added:
- refresh_token
- scope
Changed expires_in to DATETIME type.
added new methods:
isConnected returns true when there is token data.
Dropbox::isConnected()
disconnect() disconnects from Dropbox and deleted the token then redirects to the path provided, defaults to /
Dropbox::disconnect($redirectPath = '/')
Added new config option,
Set access type, options are offline and online
* Offline - will return a short-lived access_token and a long-lived refresh_token that can be used to request a new short-lived access token as long as a user's approval remains valid.
* Online - will return a short-lived access_token
'accessType' => env('DROPBOX_ACCESS_TYPE', 'offline')
Added support for refresh tokens, now when a token is about to expire and there is a refresh token stored, a new access_token will be refreshed by using the refresh token this happens automatically when any request to Dropbox is attempted.
added support for scopes to the config file
Merge remote-tracking branch 'origin/master' # Conflicts: # config/dropbox.php
Improved upload method
$path
can be empty so set the desired folder structure for storing uploaded files.
added support for Guzzle 7
v2.0.3 added support for Guzzle 7
added support for Laravel 8
v2.0.2 added support for Laravel 8