anton-a46/tinyfield is a Laravel package for tinypng.
It currently has 1 GitHub stars and 23 downloads on Packagist (latest version 0.0.3).
Install it with composer require anton-a46/tinyfield.
Discover more Laravel packages by anton-a46
or browse all Laravel packages to compare alternatives.
Last updated
This is a laravel-admin extension that integrates TinyPng into the laravel-admin form.
Compress your images when uploading with api TinyPng
composer require anton-a46/tinyfield
Then
php artisan vendor:publish --provider=anton-a46\tinyfield\TinyFieldServiceProvider
In the env file add TinyPng API KEY
TINY_PNG_KEY=XXXXXXXXXXXXXXXXXXXXX
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();