Exemplo n.º 1
0
 public function email(Request $request)
 {
     $id = $request->get('id');
     $registration = Registration::find($id);
     Mail::send('email', ['registrant' => $registration->name, 'id' => $id], function ($m) use($registration) {
         $m->to($registration->email, $registration->name)->replyTo('*****@*****.**', 'MURUGANANTHAM')->subject('Confirmation of Participation for the SEP - NIT Trichy');
     });
     $registration->email_sent = true;
     $registration->save();
 }
Exemplo n.º 2
0
 public function show_registration(Request $request)
 {
     $id = $request->get('id');
     $registration = Registration::find($id);
     echo json_encode($registration);
 }