承接 gaspertrix/laravel-backpack-dropzone-field 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

gaspertrix/laravel-backpack-dropzone-field

最新稳定版本:3.0.1

Composer 安装命令:

composer require gaspertrix/laravel-backpack-dropzone-field

包简介

Add Dropzone support for Laravel Backpack

README 文档

README

Add Dropzone support for Laravel Backpack.

Requirements

Limitations

Currently, you can only manage media while editing an entry.

Install

Via Composer

composer require gaspertrix/laravel-backpack-dropzone-field:^3.0.0

The package will automatically register itself.

You must publish public assets:

php artisan gaspertrix:backpack:dropzone:install

You may publish views with:

php artisan vendor:publish --provider="Gaspertrix\LaravelBackpackDropzoneField\DropzoneFieldServiceProvider" --tag="views"

Usage

EntityCrudController

For simplicity add the MediaOperation operation to EntityCrudController.

<?php

...


class EntityCrudController extends CrudController
{
	...
    use \Gaspertrix\LaravelBackpackDropzoneField\App\Http\Controllers\Operations\MediaOperation;

	...
}

Field

[
	...
	'type' => 'dropzone_media',
	'view_namespace' => 'dropzone::fields',
	'collection' => 'photos', // Media collection where files are added to
	'thumb_collection' => 'thumbs', // Media collection where thumb are displayed from. If not set, 'collection' is used by default
	'options' => [
		... // Dropzone options
	]
	...
]

Example:

<?php

...
$this->crud->operation(['update'], function() {
	$this->crud->addField([
		'label' => 'Photos',
		'type' => 'dropzone_media',
		'view_namespace' => 'dropzone::fields',
		'name' => 'photos',
		'collection' => 'photos',
		'thumb_collection' => 'thumbs',
		'options' => [
			'thumbnailHeight' => 120,
			'thumbnailWidth' => 120,
			'maxFilesize' => 10,
			'addRemoveLinks' => true,
			'createImageThumbnails' => true,
		],
	]);
});

...

Change log

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email adrian@gaspertrix.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

  • Stars: 17
  • Watchers: 3
  • Forks: 19
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-10-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固