📜  laravel eloquent where id not equal - PHP 代码示例

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

代码示例1
Code::where('to_be_used_by_user_id', '!=' , 2)->orWhereNull('to_be_used_by_user_id')->get()