title: How to merge a file with "Request" in Laravel?
body: <p>I have a problem in my project which should merge a file with 'Request',i just find that we can use the function of merge to merge the attributes,but how can we merge a file in laravel?thanks so much.</p>
  
  <p>We can use 'merge' to merge some attributes</p>
  
  <pre class="lang-php prettyprint-override"><code>$request-&gt;merge([
              'ticket_id' =&gt; '123',
          ]);
  </code></pre>
  
  <p>But if i want to merge a file?(i find this way is not workable, i can't not receive a file from the Request)</p>
  
  <pre class="lang-php prettyprint-override"><code>$request-&gt;merge([
              'file' =&gt; fopen('xxx', 'r'),
          ]);
  </code></pre>
  
  <p>And the way likes this is not workable,too.</p>
  
  <pre class="lang-php prettyprint-override"><code>$request-&gt;files = fopen('xxx', '');
  </code></pre>