laravel-image maintained by binarycabin
Description
Simple integration for image uploading and linking
Author
Last update
2017/11/20 17:53
(dev-master)
License
Downloads
32
Laravel-Image
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);
}