public function where($column, $operator, $value)
    {
        $capsule = $this->_database->getCapsule();

        if (empty($column)) {
            throw new \Exception('You must provide the column to look up!');
        }
        if (empty($operator)) {
            throw new \Exception('You must provide an operator!');
        }
        if (empty($value)) {
            throw new \Exception('You must provide the value!');
        }

        $this->_model = $capsule->table($this->table)->where($column, $operator, $value);

        return $this->_model;
    }
public function where($column, $operator, $value)
    {
        $capsule = $this->_database->getCapsule();

        if (empty($column)) {
            throw new \Exception('You must provide the column to look up!');
        }
        if (empty($operator)) {
            throw new \Exception('You must provide an operator!');
        }
        if (empty($value)) {
            throw new \Exception('You must provide the value!');
        }

        $this->_model = $capsule->table($this->table)->where($column, $operator, $value);

        return $this->_model;
    }
public function where ( $ column , $ operator , $ value ) { $ capsule = $ this -> _database -> getCapsule ( ) ; if ( empty ( $ column ) ) { throw new \ Exception ( 'You must provide the column to look up!' ) ; } if ( empty ( $ operator ) ) { throw new \ Exception ( 'You must provide an operator!' ) ; } if ( empty ( $ value ) ) { throw new \ Exception ( 'You must provide the value!' ) ; } $ this -> _model = $ capsule -> table ( $ this -> table ) -> where ( $ column , $ operator , $ value ) ; return $ this -> _model ; }
Searches for something in the database.

@param string $column   - The column to search
@param string $operator - The operator for searching with
@param string $value    - The value you're looking for

@return \Illuminate\Database\Query\Builder
Searches for something in the database .