public function postAdicionar() { $dadosFormulario = Input::all(); $validador = Validator::make($dadosFormulario, $this->regras); if ($validador->fails()) { return Redirect::to('postagem/adicionar')->withErrors($validador)->withInput(); } $postagem = new Postagem($dadosFormulario); $postagem->save(); return Redirect::to('postagem'); }