/**
  * Email the contact request
  *
  * @param ContactMeRequest $request
  * @return Redirect
  */
 public function sendContactInfo(ContactMeRequest $request)
 {
     $data = $request->only('name', 'email', 'phone');
     $data['messageLines'] = explode("\n", $request->get('message'));
     Mail::queue('emails.contact', $data, function ($message) use($data) {
         $message->subject('Blog Contact Form: ' . $data['name'])->to(config('blog.contact_email'))->replyTo($data['email']);
     });
     return back()->withSuccess("Thank you for your message. It has been sent.");
 }
 public function store(ContactMeRequest $request)
 {
     $data = ['name' => $request->get('name'), 'email' => $request->get('email'), 'phone' => $request->get('phone'), 'message' => $request->get('message')];
     $contacts = new Contact($data);
     $contacts->save();
     $data = ['name' => $request->get('name'), 'email' => $request->get('email'), 'phone' => $request->get('phone'), 'msg' => $request->get('message')];
     Mail::send('contact/email_template', $data, function ($message) {
         $message->from(Input::get('email'), 'Mail from contact page');
         $message->to('*****@*****.**')->subject("message from " . Input::get('name'));
         $message->replyTo(Input::get('email'), Input::get('name'));
     });
     return redirect('contact')->withStatus('We will get back to you soon');
 }
 /**
  * Email the contact request
  *
  * @param ContactMeRequest $request
  * @return Redirect
  */
 public function sendContactInfo(ContactMeRequest $request)
 {
     $data = $request->only('name', 'email', 'phone');
     $data['messageLines'] = explode("\n", $request->get('message'));
     Mail::send('emails.contact', $data, function ($message) use($data) {
         $message->subject('Blog Contact Form: ' . $data['name'])->to('*****@*****.**')->replyTo($data['email']);
     });
     Mail::send('emails.reponse', ['testVar' => 'Just a silly test'], function ($message) use($data) {
         $message->to($data['email'])->subject('Confirmation');
     });
     return back()->withSuccess("Merci, Votre message à été bien enregistré, -----SM-DEVIS.");
 }
 public function store(ContactMeRequest $request)
 {
     $contacts = new Contact(['name' => $request->get('name'), 'email' => $request->get('email'), 'phone' => $request->get('phone'), 'message' => $request->get('message')]);
     $contacts->save();
     return 'hello';
 }