定制 hcipl/dropzone-with-dropbox 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hcipl/dropzone-with-dropbox

Composer 安装命令:

composer require hcipl/dropzone-with-dropbox

包简介

Dropzone file upload with dropbox

README 文档

README

Dropzone file upload with dropbox.

Live url : (https://packagist.org/packages/hcipl/dropzone-with-dropbox)

Usage

  1. Install the package: "composer require hcipl/dropzone-with-dropbox".
  2. Configure your database ".env" file.
  3. The first thing you need to do is get an authorization token at Dropbox. Unlike other companies Dropbox has made this very easy. You can just generate a token in the App Console for any Dropbox API app. You'll find more info at the Dropbox Developer Blog.
  4. Set dropbox configuration on your .env file
  5. Configure Dropbox as Driver in AppServiceProvider.php
    public function boot()
    {
    	
        Storage::extend('dropbox', function (Application $app, array $config) {

            $adapter = new DropboxAdapter(new DropboxClient(
                $config['authorization_token']
            ));
   
            return new FilesystemAdapter(
                new Filesystem($adapter, $config),
                $adapter,
                $config
            );
        });
    }
  1. Add a new driver on the config/filesystems.php inside "disks".
	'dropbox' => [
        'driver' => 'dropbox',
        'key' => env('DROPBOX_APP_KEY'),
        'secret' => env('DROPBOX_APP_SECRET'),
        'authorization_token' => env('DROPBOX_AUTHORIZATION_TOKEN', null),
        'case_sensitive' => true,
    ]
  1. Run migration: "php artisan migrate"
  2. Run project server "php artisan serve",
  3. Test url "http://127.0.0.1:8000/image/index"

Views Modification

In order to modify the dropzone:
  1. Select the option which depicts "Provider:Hcipl\dropzoneWithDropbox\DropzoneWithDropboxServiceProvider".
  2. Run below command to publish the assests. php artisan vendor:publish --tag=public --force

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-06-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固