Пример #1
0
 public function submitQuestion()
 {
     $answer_id = Input::get('answer_id');
     $user_answer = UserAnswer::create(array('answer_id' => $answer_id, 'user_id' => Auth::user()->id));
     $user_answer->save();
     return View::make('question-chart')->with('question', Answer::find($answer_id)->question);
 }