public function destroyBy(array $where)
    {
        $query = $this->make();

        $query = $this->applyWhere($query, $where);

        return $query->delete();
    }
public function destroyBy(array $where)
    {
        $query = $this->make();

        $query = $this->applyWhere($query, $where);

        return $query->delete();
    }
public function destroyBy ( array $ where ) { $ query = $ this -> make ( ) ; $ query = $ this -> applyWhere ( $ query , $ where ) ; return $ query -> delete ( ) ; }
Retrieve and delete the all records matching input parameters.

@param array $where

@return mixed
Retrieve and delete the all records matching input parameters .