1
クエリビルダを使用して、DB :: raw();を使用せずに他のテーブルへのNothingを条件付けする方法を教えてください。Laravel DB Query Builder "whereNotIn" to another table
$query ="select * from project
where prj_usr_id= $user->id
and now()<prj_expiry
and prj_id not in(select bd_prj_id from bid where bd_status=1)
and prj_status='open'
order by prj_updated_date desc;
http://stackoverflow.com/questions/16815551/how-to-do-this-in-laravel-subquery-where-in – herrjeh42
の可能重複モデルのコードにそれを助けた –
herrjeh42 @感謝を投稿してください。 –