$data=array(
'name'=>$request->name,
'email'=>$request->email,
'number'=>$request->number,
'subject'=>$request->subject,
'massage'=>$request->massage
);
Mail::send('layout.sendmail', $data, function($message) use ($data){
$message->from($data['email']);
email save on config/mail
$message->to('hr-glovaltech@gmail.com');
$message->subject($data['subject']);
}
我总是从(电子邮件)获得默认值,该默认值保存在config / mail文件中,但没有得到上面给出的