title: League\Flysystem\FileExistsException File already exists at path:
body: <p>All my multiple data is successfully inserted into the database. However, if I want to insert the same image as the one that has been inserted before, those errors appeared <code>League\Flysystem\FileExistsException File already exists at path: public/complaint/walls defect 1.jpg</code>. Supposedly I want the same file of image can be inserted multiple times. May I know how can I fix this?</p>
  <p><strong>complaints table</strong></p>
  <pre><code>id
  defect_id
  image
  description
  report_by
  </code></pre>
  <p><strong>ComplaintController.php</strong></p>
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers;
  
  use Auth;
  use Validator;
  use Response;
  use Carbon\Carbon;
  use App\Complaint;
  use Illuminate\Support\Facades\Storage;
  use Illuminate\Http\Request;
  use Intervention\Image\ImageManagerStatic as Image;
  
  class ComplaintController extends Controller
  {
      public function index()
      {
          return view('buyers.complaint');
      }
  
      public function create(Request $request)
      {
          if (count($request-&gt;defect_id) &gt; 0) {
              foreach($request-&gt;defect_id as $item=&gt;$v) {
                  if (isset($request-&gt;image[$item])) {
                      $images = $request-&gt;file('image');
                      $image_resize = Image::make($images[$item]-&gt;getRealPath());
                      $image_resize-&gt;resize(900, 630);
                      $filename = $images[$item]-&gt;getClientOriginalName();
  
                      Storage::put($filename, $image_resize);
                      Storage::move($filename, 'public/complaint/' . $filename);                  
                  }
                  $data = array(
                      'defect_id' =&gt; $request-&gt;defect_id[$item],
                      'image' =&gt; $filename,
                      'description' =&gt; $request-&gt;description[$item],
                      'report_by' =&gt; auth()-&gt;user()-&gt;typable-&gt;buyer_id,
                      'created_at' =&gt; Carbon::now()-&gt;toDateTimeString(),
                      'updated_at' =&gt; Carbon::now()-&gt;toDateTimeString()
                  );
  
                  Complaint::insert($data);
              }
          }
          return redirect('/report-form')-&gt;with('success','Your report is submitted!');
      }
  
  </code></pre>