/**
  * Email the invite request
  *
  * @param InviteRequest $request
  * @return mixed
  */
 public function sendInviteEmail(InviteRequest $request)
 {
     $data = $request->only('fullName', 'attendance', 'comment');
     Mail::send('emails.invite', $data, function ($message) use($data) {
         $message->to('*****@*****.**')->cc('*****@*****.**')->subject('Wedding Invite Information');
     });
     return back();
     //            ->withSuccess("Thank you for your message. It has been sent.");
 }
Beispiel #2
0
 /**
  * Create a new invite
  *
  * @return Response
  */
 public function store(InviteRequest $request)
 {
     $this->inviteService->create($request->all());
     return redirect('/')->with('invite_success', 'Thank You for requesting an invite!');
 }