Gitamin\Services\DataCollector\Eloquent\DataCollector::findWhere PHP Метод

findWhere() публичный Метод

public findWhere ( array $where, array $columns = ['*'] ) : Illuminate\Database\Eloquent\Collection | null
$where array
$columns array
Результат Illuminate\Database\Eloquent\Collection | null
    public function findWhere($where, $columns = ['*'])
    {
        $this->applyCriteria();
        $model = $this->model;
        foreach ($where as $field => $value) {
            $model = $model->where($field, $value);
        }
        return $model->get($columns);
    }