src/Collection.php
public function firstWhere($key, $operator, $value = null)
    {
        return $this->first($this->operatorForWhere(...\func_get_args()));
    }
public function firstWhere($key, $operator, $value = null)
    {
        return $this->first($this->operatorForWhere(...\func_get_args()));
    }
public function firstWhere ( $ key , $ operator , $ value = null ) { return $ this -> first ( $ this -> operatorForWhere ( ... \ func_get_args ( ) ) ) ; }
Get the first item by the given key value pair.

@param  string  $key
@param  mixed  $operator
@param  mixed  $value
@return static
Get the first item by the given key value pair .