public function postContact() { $input = Input::all(); $data = array('name' => $input['name'], 'surname' => $input['surname'], 'street' => $input['street'], 'city' => $input['city'], 'state' => $input['state'], 'zip' => $input['zip'], 'telephone' => $input['telephone'], 'email' => $input['email'], 'bedroom' => $input['bedroom'], 'price' => $input['price'], 'broker' => $input['broker'], 'question' => $input['question'], 'company' => $input['company'], 'notes' => $input['notes']); $registration = RegistrationPage::create($data); Mail::send('emails.welcome', array('data' => $data), function ($message) { $message->from('*****@*****.**', '465 Pacific'); $message->to(Input::get('email'), Input::get('name') . " " . Input::get('surname'))->subject('465 Pacific Confirmation'); }); return Redirect::route('tnx.get'); }