Ejemplo n.º 1
0
 /**
  * Show the form for creating a new resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function store(Request $request)
 {
     $this->validate($request, Contactform::$rules);
     $input = Input::all();
     $contact = Contactform::create($input);
     return Redirect::action('ContactController@index')->with('message', 'Recibimos tu mensaje. ¡Nos pondremos en contacto pronto!');
 }