我在Laravel中编写查询,但它给了我错误提示
ErrorException:类stdClass的对象无法转换为字符串
$subject_ids = DB::table('question_sets')
->select('subject_id')
->where('test_section_id','=',$testDetail->test_section_id)
->distinct()
->get();
$topic_ids = DB::table('topics')
->select('id')
->where('subject_id','=',$subject_ids)
->get();
千万里不及你