laravel ->wherehas code example
Example: orwhere in wherehas laravel
User::select()->whereHas('student', $function($q) {
$q->where('name', $value)
->orWhere('age', $value2);
});
User::select()->whereHas('student', $function($q) {
$q->where('name', $value)
->orWhere('age', $value2);
});