public function postContactUs() { $rules = array('email' => "required|email|max:254", 'conact_us' => 'honeypot', 'contact_us_time' => 'required|honeytime:5'); $validator = Validator::make(Input::get(), $rules); if ($validator->passes()) { if (!LaravelCP::sendEmailContactUs()) { return Redirect::to('contact-us')->with('error', Lang::get('core.email_not_sent')); } } else { return Redirect::to('contact-us')->withInput()->with('error', Lang::get('core.email_not_sent')); } return Redirect::to('contact-us')->with('success', Lang::get('core.email_sent')); }