Пример #1
0
 /**
  * Store a newly created resource in storage.
  *
  * @return Response
  */
 public function store()
 {
     $codcampeonato = Input::get('codcampeonato');
     $respuesta = Torneo::crear(Input::all());
     if ($respuesta['error'] == true) {
         return Redirect::back()->withErrors($respuesta['mensaje'])->withInput();
     }
     return Redirect::to('torneo/' . $codcampeonato)->withErrors($respuesta['mensaje']);
 }