public function firstOrCreate(array $where)
    {
        $this->applyCriteria();
        $this->applyScope();
        $model = $this->model->firstOrCreate($where);
        $this->resetModel();

        event(new RepositoryEntityCreated($this, $model));

        return $this->parserResult($model);
    }