<div id="{{ $id or 'gallery-upload' }}" class="gallery-upload {{ $class or ''}}">
    <p>
        <button type="button" class="btn btn-default">{{ $button or 'Upload' }}</button>
        <input type="file" class="hidden" accept="image/*">
    </p>
    <div class="image-gallery clearfix">
        @if (isset($images))
            @foreach ($images as $image)
                <div class="image-preview" style="background-image:url({{$image->getThumbUrl()}})">
                    <span><i class="fa fa-times"></i></span>
                    <input type="hidden" name="{{ $name or 'images' }}[]" value="{{ $image->id or '' }}">
                </div>
            @endforeach
        @endif
    </div>
    <p class="text-muted">Drag and drop to change the order of images.</p>
    <template>
        <div class="image-preview">
            <span><i class="fa fa-times"></i></span>
            <input type="hidden" name="{{ $name or 'images' }}[]">
        </div>
    </template>
</div>

<div id="{{ $id or 'gallery-upload' }}" class="gallery-upload {{ $class or ''}}">
    <p>
        <button type="button" class="btn btn-default">{{ $button or 'Upload' }}</button>
        <input type="file" class="hidden" accept="image/*">
    </p>
    <div class="image-gallery clearfix">
        @if (isset($images))
            @foreach ($images as $image)
                <div class="image-preview" style="background-image:url({{$image->getThumbUrl()}})">
                    <span><i class="fa fa-times"></i></span>
                    <input type="hidden" name="{{ $name or 'images' }}[]" value="{{ $image_id or '' }}">
                </div>
            @endforeach
        @endif
    </div>
    <p class="text-muted">Drag and drop to change the order of images.</p>
    <template>
        <div class="image-preview">
            <span><i class="fa fa-times"></i></span>
            <input type="hidden" name="{{ $name or 'images' }}[]">
        </div>
    </template>
</div>

--- 
+++ 
@@ -8,7 +8,7 @@
             @foreach ($images as $image)
                 <div class="image-preview" style="background-image:url({{$image->getThumbUrl()}})">
                     <span><i class="fa fa-times"></i></span>
-                    <input type="hidden" name="{{ $name or 'images' }}[]" value="{{ $image_id or '' }}">
+                    <input type="hidden" name="{{ $name or 'images' }}[]" value="{{ $image->id or '' }}">
                 </div>
             @endforeach
         @endif
Fix error of input value in gallery uploader.
