protected function autoDeleteImage()
    {
        if (config('imageup.auto_delete_images')) {
            foreach ($this->getDefinedUploadFields() as $field => $options) {
                $field = is_numeric($field) ? $options : $field;
                $this->deleteImage($this->getOriginal($field));
            }
        }
    }
protected function autoDeleteImage()
    {
        if (config('imageup.auto_delete_images')) {
            foreach ($this->getDefinedUploadFields() as $field => $options) {
                $field = is_numeric($field) ? $options : $field;
                $this->deleteImage($this->getOriginal($field));
            }
        }
    }
protected function autoDeleteImage ( ) { if ( config ( 'imageup.auto_delete_images' ) ) { foreach ( $ this -> getDefinedUploadFields ( ) as $ field => $ options ) { $ field = is_numeric ( $ field ) ? $ options : $ field ; $ this -> deleteImage ( $ this -> getOriginal ( $ field ) ) ; } } }
Auto delete image handler
Auto delete image handler