binarycabin/laravel-image

Simple integration for image uploading and linking

Installs: 32

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 1

pkg:composer/binarycabin/laravel-image

1.0.0 2017-11-20 16:53 UTC

This package is auto-updated.

Last update: 2025-10-06 12:31:38 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);
    }