public function home() { //Session::put('1',''); Session::put('counter', 0); $answers = questions::all(); return view('test.test', compact('answers')); }
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()); }