title: How to delete multiple image in public/folder when updating in laravel?
body: <p>I save multiple images using array in database. eg. <code>img.jpg,img1.jpg,img2.jpg</code> this is my code.</p>
  
  <pre><code>$this-&gt;validate($request,[
          'listing_id' =&gt; 'required',
          'images.*' =&gt; 'image|mimes:jpeg,png,jpg,gif,svg|max:2048',
          'description' =&gt; 'required',
          'features' =&gt; 'required',
          'make' =&gt; 'required',
      ]);
  
      $vehicles = vehicle::find($id);
      $input=$request-&gt;all();
      $images=array();
      if($files=$request-&gt;File('images')){
          foreach($files as $file){
              $name=date('mdYHis').uniqid().'.'.$file-&gt;getClientOriginalExtension();
              $file-&gt;move('uploaded-images',$name);
              $images[]=$name;
              $vehicles-&gt;images = implode(",",$images);
          }
      }else{
  
          $vehicles-&gt;images = $request-&gt;images_dummy;
  
      }
  </code></pre>
  
  <p>I want is to delete the image file in <code>public/uploaded-images</code>.
  i found this <a href="https://stackoverflow.com/questions/44710894/how-to-delete-images-from-public-images-folder-in-laravel-5-url-data">How to Delete Images from Public/Images Folder in laravel 5 (URL Data)</a> but its not working in my code.</p>