diff --git a/src/Illuminate/Collections/Collection.php b/src/Illuminate/Collections/Collection.php index 0eae5e9dd938..3ad5e13ddcf2 100644 --- a/src/Illuminate/Collections/Collection.php +++ b/src/Illuminate/Collections/Collection.php @@ -177,14 +177,14 @@ public function contains($key, $operator = null, $value = null) } /** - * Determine if an item is missing in the collection. + * Determine if an item is not contained in the collection. * * @param mixed $key * @param mixed $operator * @param mixed $value * @return bool */ - public function missing($key, $operator = null, $value = null) + public function doesntContain($key, $operator = null, $value = null) { return ! $this->contains($key, $operator, $value); } diff --git a/src/Illuminate/Collections/LazyCollection.php b/src/Illuminate/Collections/LazyCollection.php index 9688e755447a..00fd4ba0df1f 100644 --- a/src/Illuminate/Collections/LazyCollection.php +++ b/src/Illuminate/Collections/LazyCollection.php @@ -206,14 +206,14 @@ public function contains($key, $operator = null, $value = null) } /** - * Determine if an item is missing in the enumerable. + * Determine if an item is not contained in the enumerable. * * @param mixed $key * @param mixed $operator * @param mixed $value * @return bool */ - public function missing($key, $operator = null, $value = null) + public function doesntContain($key, $operator = null, $value = null) { return ! $this->contains($key, $operator, $value); }