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.