orwhere in wherehas laravel

30

User::select()->whereHas('student', $function($q) {
        $q->where('name', $value)
          ->orWhere('age', $value2);
    });

Comments

Submit
0 Comments