Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function store(Request $request)
- {
- $r=1;
- $tot = 185;
- while($r <= $tot){
- $encuesta = new CatelEncuesta;
- $encuesta->pregunta = $request->get('pregunta'.$r);
- $encuesta->respuesta = $request->get('respuesta'.$r);
- $encuesta->id_foto = $request->get('id');
- $encuesta->save();
- $r = $r+1;
- }
- return redirect()->action('UsuariosController@index');
- // return view('catel.success')->with(['Enhorabuena haz completado el Test de catel']);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement