方法一: 使用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 相关文章: 2021-07-19 2022-01-03 2022-12-23 2022-12-23 2022-12-23 2022-12-23 2022-12-23 2022-12-23