The Laravel 5.4 documentation says that Collections support whereNotIn, but calling whereNotIn() on a collection produces
exception 'BadMethodCallException' with message 'Method whereNotIn does not exist.'
$collection = collect($array);
$rowsToUpdate = $collection->whereIn('id', $existingIDs); //works
$rowsToInsert = $collection->whereNotIn('id', $existingIDs); //throws BadMethodCallException
It was added in v5.4.14.
@guidocella Since that isn't mentioned in the website release notes, or the GitHub release notes, or in the documentation itself, where would we go to find that kind of information? I'm not used to new features being added in patch versions. I see the latest few GitHub releases do have notes, so is this something that the team recently started doing?
@kevinfoley It's mentioned in laravel/framework repo.
https://github.com/laravel/framework/blob/5.4/CHANGELOG-5.4.md#v5414-2017-03-01
Most helpful comment
It was added in v5.4.14.