Log::info('Sending email', array(
'title' => $attributes['title'],
'recipient' => $attributes['email']
));
Mail::queue('emails.welcome', $attributes, function($message) use ($attributes)
{
$message
->to($attributes['email'])
->subject($attributes['title']);
});
The problem's with the closure being passed to Mail::queue
. What's wrong? This is exactly the same with what's in the docs.