其實我的查詢是:Laravel - 如何在where子句中編寫多個條件?
SELECT * FROM company WHERE status<>$status AND type=$b1 AND type=$b2
如何laravel這種轉換?
我這樣做是在laravel,但它不工作:
$data['Company'] = DB::table('company')->where([["status","<>",$status], ["type","=",$b1],["type","=",$b2]])->get();
請幫幫我!
這種嘗試:'$數據[ '公司'] = DB ::表(」 (''',$ b2) - > get();' –