title: Laravel sending attachment from two different inputs
body: <p>I'm trying to send an email through Laravel from a form that has two different file inputs with different names, cv and cover_letter.</p>
  
  <p>The build function works just fine but it only attaches one file when it sends the email, I'd like it to send both.</p>
  
  <p>I've tried <a href="https://stackoverflow.com/questions/42848363/laravel-5-3-attach-multiple-files-to-mailables">this solution</a> here on SO but no luck sending both attachments either.</p>
  
  <pre><code>    public function build(Request $request)
      {
         $today = Carbon::now()-&gt;format('Y-m-d');
  
          return $this-&gt;from([
              'email' =&gt; $request-&gt;email, 
              'name' =&gt; $request-&gt;name 
          ])
          -&gt;to( 'jobs@domain.com' )
          -&gt;subject( New job application '.$request-&gt;name.' for the position of '.$request-&gt;role.'.')
          -&gt;view('emails.jobsform')
          -&gt;with([    
              'name' =&gt; $request-&gt;name,
              'tel' =&gt; $request-&gt;tel,
              'email' =&gt; $request-&gt;email,
              'role' =&gt; $request-&gt;role,
              'location' =&gt; $request-&gt;location,
              'call_code' =&gt; $request-&gt;call_code,
  
          ])
          -&gt;attach(
              $request-&gt;cv, [
              'as' =&gt; $today.".".$request-&gt;name.".".$request-&gt;role.'.pdf', 
              'mime' =&gt; 'application/pdf'],
              $request-&gt;cover_letter, [
                  'as' =&gt; $today.".".$request-&gt;name.".".$request-&gt;role.'-Cover Letter.pdf', 
                  'mime' =&gt; 'application/pdf']
              );
  
      }
  </code></pre>
  
  <p>Hope someone can help, thanks.</p>