1// $data => array of information passed to view
2Mail::send('email_view', $data, function ($m) use ($user) {
3 $m->from("example@gmail.com", config('app.name', 'APP Name'));
4 $m->to($user->email, $user->email)->subject('Email Subject!');
5 });
1$to = [
2 [
3 'email' => $email,
4 'name' => $name,
5 ]
6];
7\Mail::to($to)->send(new \App\Mail\Hello);
8