📜  laravel 哪里没有 - PHP 代码示例

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

代码示例1
// get all Videos that don't belong to category 2 and 3
Video::whereDoesntHave('categories', function($query) {
  $query->whereIn('id', [2, 3]);
})->get();