binarycabin / laravel-image
Simple integration for image uploading and linking
1.0.0
2017-11-20 16:53 UTC
Requires
None
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-09-06 14:24:23 UTC
README
Simple integration for image uploading and linking
Example
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);
}