方法一: 使用Eloquent的where
where('id', '!=' , 2)
方法二: 使用Eloquent的whereNotIn
->whereNotIn( 'id', [2])
参考文献:
方法一: 使用Eloquent的where
where('id', '!=' , 2)
方法二: 使用Eloquent的whereNotIn
->whereNotIn( 'id', [2])
参考文献:
转载于:https://www.cnblogs.com/fsong/p/5944270.html