public function update(Request $Request, $id) { $emailupdate = email::find($id)->update($Request->all()); $email = email::findOrFail($id); Mail::send('emails.test', ['email' => $email], function ($m) use($email) { $m->to($email->email, $email->name)->subject('you reminder'); }); return redirect('email/responderEmail'); }
public function email(Request $Request) { $email = $Request->all(); email::create($email); return view('contato.cadastro'); }