alareqi / laravel-blurhashable
This is my package laravel-blurhashable
Fund package maintenance!
Ayman Alareqi
Requires
- php: ^8.2
- bepsvpt/blurhash: ^3.0
- illuminate/contracts: ^10.0||^11.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1.1||^7.10.0
- orchestra/testbench: ^9.0.0||^8.22.0
- pestphp/pest: ^2.34
- pestphp/pest-plugin-arch: ^2.7
- pestphp/pest-plugin-laravel: ^2.3
README
Handle image blurhash automatically with minimum configurations
Installation
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' ];
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.