Laravel Eloquent 的条件不等于 方法一: 使用Eloquent的where where('id', '!=' , 2) 方法二: 使用Eloquent的whereNotIn ->whereNotIn( 'id', [2]) 参考文献: Eloquent - where not equal to MySQL query: where field is not equal to some of the given values