use array with where in laravel

$assignquestion = DB::table('assign_question')->where('user_id',$user_id)->get();
    $assignq = array();
    foreach($assignquestion as $assign)
    {
    $assignq = array_merge($assignq,json_decode($assign->question_ids,true));
    }
    $data = DB::table('question_master')->whereIn('id',$assignq)->paginate(50);

Discover more from Soa Technology | Aditya Website Development Designing Company

Subscribe to get the latest posts sent to your email.



Leave a Reply

Discover more from Soa Technology | Aditya Website Development Designing Company

Subscribe now to keep reading and get access to the full archive.

Continue reading