title: Laravel Mail::send with multiple attachment
body: <p>How can i send a mail with multiple attachments in laravel?</p>
  
  <p>This is my laravel controller:</p>
  
  <pre><code>public function send_approve_mail($to, $subj, $tmp, $path) {
  
      $_POST['subj'] = $subj;
      $_POST['to'] = $to;
  
      foreach ($path as $key =&gt; $value) {
          $path[$key] = '../public/assets/fax/extra/' . $value;
      }
  
      $_POST['attach'] = $path;
  
      $msg = "test message here";
      $data_mail = Mail::send($tmp, array('msg' =&gt; $msg), function($message) {
                  $message-&gt;from('xxx@xxx.com', $_POST['subj']);
                  $message-&gt;to($_POST['to'])-&gt;subject($_POST['subj']);
                  $message-&gt;attach($_POST['attach']);
              }, true);
  
      Help::send_mail($data_mail, array($_POST['to']), array('xxx@xxx.com'));
  }
  </code></pre>
  
  <p>All attachments are available in array <code>$path</code>.</p>
  
  <p>It's showing error <code>basename() expects parameter 1 to be string, array given</code>.</p>
  
  <p>But when I use <code>$_POST['attach'] = $path[0];</code> instead of <code>$_POST['attach'] = $path;</code>, mail is received with only one attachment.</p>