title: Laravel Lumen file upload with full path
body: <p>I am uploading the file :</p>
  
  <pre><code>if ($request-&gt;hasFile('cnicFrontUrl')) {
      $picName = $request-&gt;file('cnicFrontUrl')-&gt;getClientOriginalName();
      $picName = base_path() . uniqid() . $picName;
      $destinationPath = "uploads/user_files/cnic";
      $request-&gt;file('cnicFrontUrl')-&gt;move($destinationPath, $picName);
      $userDetails-&gt;cnicFrontUrl = $picName;
  }
  </code></pre>
  
  <p>The file moves to the <code>project/public/uploads/user_files/cnic</code> successfully, </p>
  
  <p>But the filename which goes also to the database have the remote server directory path like <code>/var/www/html/baseApi/5927bcb59ba4fcar.png</code></p>
  
  <p><strong>How can i be able to store the filename like <code>https://example.com/public/uploads/user_files/cnic/5927bcb59ba4fcar.png</code> so it can be use be only accessing the filename.</strong></p>