Commit df8bf3c4 by Triyah Fatmawati

On send email

parent 5982af92
...@@ -242,7 +242,7 @@ public function store(Request $request) { ...@@ -242,7 +242,7 @@ public function store(Request $request) {
'totalHarga' => $totalHarga, 'totalHarga' => $totalHarga,
]; ];
// SendMail::dispatch($data, 'email.invoice', $data['registrasi']->email, 'registrasi', 'email_regis_sent_at'); SendMail::dispatch($data, 'email.invoice', $data['registrasi']->email, 'registrasi', 'email_regis_sent_at');
return view('invoice', $data)->with('success', 'Data saved successfully'); return view('invoice', $data)->with('success', 'Data saved successfully');
...@@ -353,7 +353,7 @@ public function updatePembayaran(Request $request, $va) ...@@ -353,7 +353,7 @@ public function updatePembayaran(Request $request, $va)
$data = $this->getDataRegis($va); $data = $this->getDataRegis($va);
// SendMail::dispatch($data, 'email.selesai_pembayaran', $data['registrasi']->email, 'registrasi', 'email_pembayaran_sent_at'); SendMail::dispatch($data, 'email.selesai_pembayaran', $data['registrasi']->email, 'registrasi', 'email_pembayaran_sent_at');
return response([ return response([
'status' => 200, 'status' => 200,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment