Esempio n. 1
0
 /**
  * Store a newly created resource in storage.
  *
  * @return Response
  */
 public function store(QuestionRequest $request)
 {
     $quiz = Quiz::findOrfail($request->input('quiz_list'));
     $question = $quiz->questions()->create($request->all());
     flash()->success('New Question has been created!');
     return redirect('questions');
 }