title: laravel : Not able to pass parameters to trait
body: <p>I created a trait in MailTrait.php, the following is my code</p>
  
  <pre><code>namespace App\Traits;
  use Mail;
  trait MailTrait
  {
  
      public function fn_send_mail($arr_recepients, $str_subject, $str_content)
      {
          Mail::send('mail.mailsample', ['content' =&gt; $str_content], function($message)
          {
              $message-&gt;to($arr_recepients);
              $message-&gt;from('abc.org', 'abc');
              $message-&gt;subject($str_subject);
  
          });
          if(Mail:: failures())
              return false;
          else
              return true;
      }
  
  }
  </code></pre>
  
  <p>from my controller called the function fn_send_mail() and passed parameter as below
  <code>$status = $this-&gt;fn_send_mail(['123.gmail.com'],'hai', 'hai');</code></p>
  
  <p>i am getting this error
  <code>ErrorException in MailTrait.php line 14: Undefined variable: arr_recepients</code>
  please help me!!</p>