feat(form-builder): form_field_validation_rules table + polymorphic owner + scope + cascade
This commit is contained in:
@@ -111,6 +111,11 @@ final class FormField extends Model
|
||||
return $this->morphMany(FormFieldBinding::class, 'owner');
|
||||
}
|
||||
|
||||
public function validationRules(): MorphMany
|
||||
{
|
||||
return $this->morphMany(FormFieldValidationRule::class, 'owner');
|
||||
}
|
||||
|
||||
/**
|
||||
* Nuanced activity log (ARCH §17.1; S1 Phase 4b). Callers choose which
|
||||
* events are worth logging — e.g. created/deleted/restored, field_type
|
||||
|
||||
Reference in New Issue
Block a user