|
@@ -45,9 +45,7 @@ class GameController extends Controller
|
|
|
}else{
|
|
|
$questions_id = [];
|
|
|
foreach ($questions as $k => $v) {
|
|
|
- // $response['info'] = $v;
|
|
|
- $questions_id[] = $v['question'];
|
|
|
- $response['ext'] = $questions_id;
|
|
|
+ $questions_id[] = $v->question->question_id;
|
|
|
}
|
|
|
// $questions_id = array_column($questions, 'question_id');
|
|
|
$question = Question::inRandomOrder()->select('question_id','title')->where("is_released",1)->whereNotIn("question_id", $questions_id)->first();
|