repository->findCountWhere([ ['id', '=', array_get($data, 'config_from')], ]); if ($results !== 1) { throw new NoParentConfigurationFoundException(trans('exceptions.egg.invalid_copy_id')); } } return $this->repository->create(array_merge($data, [ 'uuid' => Uuid::uuid4()->toString(), 'author' => $this->config->get('panel.service.author'), ]), true, true); } }