我正在使用Laravel項目,並且想要在不喜歡的子句中發佈多個值。我嘗試了以下方式,但沒有成功。無法在不喜歡的子句中傳遞多個值Laravel
$exclude_emails=['odz', 'test.com'];
$vendors=\DB::table("vendor_infos")
->where("vendor_infos.email", 'not like', '%'.$exclude_emails.'%')
->orderByRaw("RAND()")->take(8)->get(['vendor_infos.*']);
我也試過把它作爲字符串傳遞,但仍然沒有成功。