title: Laravel edit dropzone
body: <p>I saved files(images) by <a href="https://stackoverflow.com/search?q=dropzone">DropzoneJS</a> and I can get them everywhere I like, but my problem is how to edit them. I go to my products edit page I can see my image but have no idea how to edit them such as (delete some of them or add to them)</p>
  
  <p>here is my code to get them:</p>
  
  <pre><code>public function edit($id)
      {
        $product = Product::findOrFail($id);
        $images = DB::table('images')-&gt;where('imageable_id', '=', $product-&gt;id)-&gt;get();
  // rest of codes
  }
  </code></pre>
  
  <p>and I show my images in edit page like:</p>
  
  <pre><code>@foreach($images as $test)
    &lt;img src="{{url('/')}}/images/{{$test-&gt;name}}" alt="test" width="100" height="100"&gt;
  @endforeach
  </code></pre>
  
  <p><code>screenshot</code></p>
  
  <p><a href="https://i.stack.imgur.com/ChUUq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ChUUq.png" alt="screen1"></a></p>
  
  <h1>UPDATE</h1>
  
  <p>@linktoahref way works for me if I want to delete each of images, and he suggested to make new uploader for adding images into my product on edit page, <code>not bad idea totally</code> but it's not what I'm exactly looking for.</p>
  
  <blockquote>
    <p>What I try to achieve is to use DropZone itself to return my exist
    images of each product and be able to remove or add to it.</p>
  </blockquote>
  
  <p>I read many questions,articles, etc. And I get that I have to use <code>mockFile</code> which i have no idea about it. Would be appreciate if someone can help me to get this done.</p>
  
  <p>Thanks.</p>