How to add data to a model without creating a field
Hello! When creating a record, I want to add some data to a nested relationship (using a repeater). If I add a field to the form and enter data into it manually, everything works fine. But I would like to add this data programmatically, using for example afterStateUpdated. Without creating a field. Do I have this opportunity? Thanks for the possible answers!
public static function renderAttributesFields(Get $get, Set $set): array { $arrayFields = []; if ($get('rule_type_id') !== null) { $ruleAttributes = RuleType::find($get('rule_type_id'))->ruleAttributes; foreach ($ruleAttributes as $item) {