title: Laravel 5.2 + upload file and save name in database
body: <p>In laravel 5.2, I could upload file using below code but could not find a way to store uploaded filename in database.</p>
  
  <pre><code>    $destinationPath = "test/";
      $file = $request-&gt;file('profile_pic');
      if($file-&gt;isValid()){
          $file-&gt;move($destinationPath, $file-&gt;getClientOriginalName());
          $user = User::findOrFail(Auth::user()-&gt;id);
          $input = $request-&gt;all();
          $input['profile_pic']-&gt;pathname = $destinationPath.$file-&gt;getClientOriginalName();
          $user-&gt;update($request-&gt;all());
      }
  </code></pre>
  
  <p>Does anyone know how to store filename in db?</p>