alareqi/laravel-blurhashable is a Laravel package for this is my package laravel-blurhashable.
It currently has 0 GitHub stars and 11 downloads on Packagist (latest version v1.0.0).
Install it with composer require alareqi/laravel-blurhashable.
Discover more Laravel packages by alareqi
or browse all Laravel packages to compare alternatives.
Last updated
Handle image blurhash automatically with minimum configurations
You can install the package via composer:
composer require alareqi/laravel-blurhashable
just add the $blurhashable array to model
use Alareqi\LaravelBlurhashable\Traits\HasBlurhash;
class Project extends Model
{
use HasBlurhash;
protected $fillable = [
'id',
'name',
'description',
'image',
'image_blurhash',
'mobile_image',
'mobile_image_blurhash',
'type',
'url',
'status'
];
protected $blurhashable = [
'image' => 'image_blurhash',
'mobile_image' => 'mobile_image_blurhash'
];
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.