src/Repositories/Repository.php
public function where($key, $value=null)
    {
        if($value)
            return $this->model->where($key, $value);
        if(is_array($key))
            return $this->model->where($key);
        return null;
    }
public function where($key, $value=null)
    {
        if($value)
            return $this->model->where($key, $value);
        if(is_array($key))
            return $this->model->where($key);
        return null;
    }
public function where ( $ key , $ value = null ) { if ( $ value ) return $ this -> model -> where ( $ key , $ value ) ; if ( is_array ( $ key ) ) return $ this -> model -> where ( $ key ) ; return null ; }
try to simulate the where of Eloquent

@param  string  $key
@param  string  $value
@return this
try to simulate the where of Eloquent