public function store() { $msg = new ContactMessage(Input::all()); $msg->ip = getenv('REMOTE_ADDR'); $okay = $msg->save(); if ($okay) { $this->alertSuccess(trans('contact::message_sent')); } else { return Redirect::to('contact')->withInput()->withErrors($msg->getErrors()); } }