Solve your laravel problems.
$exams=[{"id":1}]; $toReturn['exams'] =exams_list::whereIn('examClasses',$exams)->get()->toArray();
How to do this?