public function getBy(array $where = [], array $with = [])
    {
        $query = $this->make($with);

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

        return $query->get();
    }
public function getBy(array $where = [], array $with = [])
    {
        $query = $this->make($with);

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

        return $query->get();
    }
public function getBy ( array $ where = [ ] , array $ with = [ ] ) { $ query = $ this -> make ( $ with ) ; $ query = $ this -> applyWhere ( $ query , $ where ) ; return $ query -> get ( ) ; }
Return records querying input parameters.

@param array $where
@param array $with

@return Collection
Return records querying input parameters .