Simple integration for image uploading and linking
binarycabin/laravel-image is a Laravel package for simple integration for image uploading and linking.
It currently has 0 GitHub stars and 32 downloads on Packagist (latest version 1.0.0).
Install it with composer require binarycabin/laravel-image.
Discover more Laravel packages by binarycabin
or browse all Laravel packages to compare alternatives.
Last updated
Simple integration for image uploading and linking
public static function create(array $attributes = [])
{
$query = static::query();
$model = $query->create($attributes);
$model->postSave($attributes);
return $model;
}
public function update(array $attributes = [], array $options = [])
{
$updateResponse = parent::update($attributes, $options);
$this->postSave($attributes);
return $updateResponse;
}
public function postSave(array $attributes = []){
$this->attributesUpdateImage($attributes);
}