anton-a46/tinyfield
Composer 安装命令:
composer require anton-a46/tinyfield
包简介
tinyPng
README 文档
README
This is a laravel-admin extension that integrates TinyPng into the laravel-admin form.
Compress your images when uploading with api TinyPng
Installation
composer require anton-a46/tinyfield
Then
php artisan vendor:publish --provider=anton-a46\tinyfield\TinyFieldServiceProvider
Configuration
In the env file add TinyPng API KEY
TINY_PNG_KEY=XXXXXXXXXXXXXXXXXXXXX
Usage
Use it in the form:
$form->tinyField('content'); $form->tinyField('tinyMultipleField');
Support for original field methods is retained
$form->tinyField('content')->move('/uploader')->uniqueName(); $form->tinyField('tinyMultipleField')->thumbnail([ 'medium' => [800, null], 'small' => [400, null] ])->move('/img')->uniqueName()->removable();
统计信息
- 总下载量: 23
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-01-22