public function update(Request $request)
 {
     $post = $request->all();
     $exam_id = $post['exam_id'];
     unset($post['exam_id']);
     $validator = question::validateUpdateData($post);
     if ($validator->fails()) {
         return redirect()->back()->withErrors($validator->errors());
     } else {
         unset($post['_token']);
         $result = question::where('id', $post['id'])->update($post);
         if ($result > 0) {
             Flash::success('Question successfully updated');
             return redirect('manageQuestions/' . $exam_id);
         }
     }
 }