repository->findCountWhere([ ['nest_id', '=', $egg->nest_id], ['id', '=', array_get($data, 'config_from')], ]); if ($results !== 1) { throw new NoParentConfigurationFoundException(trans('exceptions.nest.egg.must_be_child')); } } // TODO(dane): Once the admin UI is done being reworked and this is exposed // in said UI, remove this so that you can actually update the denylist. unset($data['file_denylist']); $this->repository->withoutFreshModel()->update($egg->id, $data); } }