title: Laravel sending email call_user_func() error
body: <p>I am trying to send email in laravel for which I am using the <code>mail::send</code> function.</p>
  
  <p>This is my code:</p>
  
  <pre><code>$data = [
            'title'=&gt;'Some Title',
            'content'=&gt;'Content',
            'email'=&gt; 'email',
            'password'=&gt;'password',
            'remarks'=&gt;'remarks'
        ];
  
        Mail::send('admin.mails.activate', $data, ['user'=&gt;$user], function ($message) use ($user) {
            $message-&gt;to($user-&gt;email, $user-&gt;name)-&gt;subject('Account Activation Email')-&gt;from('support@webmail.com');
        });
  </code></pre>
  
  <p>I am trying to pass the $data variable to the view file and $user variable to the callback function so that I could use user's email to send an email. But it is giving me this error:</p>
  
  <pre><code>    call_user_func() expects parameter 1 to be a valid callback, array must have exactly two members 
  </code></pre>