title: Laravel 5.4 upload original file name and extention
body: <p>how can i upload original filename (file.jpg) to database when submitting file via form. Controller:</p>
  <pre><code>public function addCv(Request $request){
          $cv = Cv::create($request-&gt;all());
          $file = $request-&gt;file_name;
          $filename = $file-&gt;getClientOriginalName();
          Storage::putFileAs('public/uploads', $file, $filename);
          return redirect()-&gt;back();
      }
  </code></pre>
  <p>at the moment, this function uploads a path like this C:\xampp\tmp\php18DD.tmp.
  Instead of that i want just filename and extension (file.extension).</p>
  <p>Storage is working fine - storing with original name.</p>