我不知道可能是什么问题,我正在尝试将数据传递到我的电子邮件表单中
Mail::send('emails/register', $a, function($message) use ($a)
{
$message->from('[email protected]' , 'xxxx');
$message->to(Input::get('email'), Input::get('username'))->bcc('[email protected]')->subject('Registration Mail');
});
我正在使用use($ a),数组是
$a = array('msg' => $activate);
然后我用
{{ $a['msg'] }}
但是我仍然得到错误
Undefined variable: a
我找到了很多与此有关的答案,包括以下答案:
但我找不到与众不同的方法。有人可以建议吗?
你应该用
{{$msg}}
代替
{{$a['msg']}}
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句