/**
  * Show the form for creating a new resource.
  *
  * @return Response
  */
 public function postCreartest()
 {
     $numberTest = Input::get('numberTest');
     $infotest = Input::get('infotest');
     //dd($numberTest);
     $infotest = explode(' ', $infotest);
     $n_value = $infotest[0];
     $numberQueries = $infotest[1];
     Cube::truncate();
     for ($x = 1; $x <= $n_value; $x++) {
         for ($y = 1; $y <= $n_value; $y++) {
             for ($z = 1; $z <= $n_value; $z++) {
                 $cube = new Cube();
                 $cube->x = $x;
                 $cube->y = $y;
                 $cube->z = $z;
                 $cube->w = 0;
                 $cube->save();
             }
         }
     }
     return View::make('consultas')->with('numberTest', $numberTest)->with('numberQueries', $numberQueries)->with('status', 'ok_create');
 }