public function loadsolution($questionid)
 {
     $solution = Solution::where('question_id', $questionid)->first();
     $out = ['solution' => []];
     //=$solution->question;
     if (!$solution) {
         $question = Question::find($questionid);
         if ($question->type == 5) {
             foreach ($question->paragraphQuestions as $qqq) {
                 array_push($out['solution'], $this->loadsolution($qqq->id));
             }
         }
     } else {
         $out = ['solution' => $solution];
     }
     return $out;
 }
 public function createSolution($questionuuid, $solutions)
 {
     $q_sol = Solution::where("question_id", $questionuuid)->first();
     if (!$q_sol) {
         $q_sol = new Solution();
         $q_sol->id = Uuid::generate();
     }
     $q_sol->question_id = $questionuuid;
     $q_sol->solution = $solutions;
     $q_sol->save();
     return $q_sol;
 }