📜  laravel 中的 where 子句 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:05.255000             🧑  作者: Mango

代码示例6
$projects = Project::whereHas('projectOffers', function ($offer) {
            $offer->where('teacher_id', "Ahmed");
            $offer->where('status_id', "Accepted");
        })->where('status_id', "inprogress")->get();