anton-a46/tinyfield 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-01-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固