title: When upload image second time using same name using laravel 5 but showing old image on browser
body: <p>Before uploading check if file exists then delete this image and upload new image using laravel functionality but showing first uploaded image when hitting image url on browser.</p>
  
  <p>I have face this issue when file name and file type are same.</p>
  
  <p>Below my code</p>
  
  <pre><code>$destinationPath = "public/".$destinationPath;
              $extension = $file-&gt;getClientOriginalExtension();
              if($file-&gt;isValid() &amp;&amp; in_array($extension, $allowedExt)) {
                  if (\File::exists($destinationPath.$fileName)) {
                      \File::delete($destinationPath.$fileName);
                  }
                  if($file-&gt;move($destinationPath, $fileName)) {
                      return true;
                  }
              } return false;
  </code></pre>
  
  <p>Also I have cleared all cache and tried on another PC.</p>
  
  <p>Following commands used to clear the cache.</p>
  
  <ol>
  <li>php artisan cache:clear</li>
  <li>php artisan config:clear</li>
  <li>php artisan route:clear</li>
  </ol>
  
  <p>Please give me Any suggestions to resolve this issue.</p>