📜  orwhere in wherehas laravel - PHP 代码示例
📅  最后修改于: 2022-03-11 14:54:06.606000             🧑  作者: Mango
代码示例1
User::select()->whereHas('student', $function($q) {
$q->where('name', $value)
->orWhere('age', $value2);
});