Exemplo n.º 1
0
 public function home()
 {
     //Session::put('1','');
     Session::put('counter', 0);
     $answers = questions::all();
     return view('test.test', compact('answers'));
 }
Exemplo n.º 2
0
 public function submitAddQuestion()
 {
     //validation
     $questions = new questions(array('question' => Input::get('question'), 'scale_type' => Input::get('scale_type'), 'reverse' => Input::get('reverse'), 'status' => '1', 'title_id' => Input::get('title_id')));
     $questions->save();
     return redirect('test/addQuestion');
     // break;
     //          question::create($request->all());
 }