Skip to content

[6.x] Refactor validation to use laravel-ruleset-validation#18740

Merged
riasvdv merged 14 commits into
6.xfrom
feature/ruleset-package
Apr 21, 2026
Merged

[6.x] Refactor validation to use laravel-ruleset-validation#18740
riasvdv merged 14 commits into
6.xfrom
feature/ruleset-package

Conversation

@riasvdv
Copy link
Copy Markdown
Contributor

@riasvdv riasvdv commented Apr 21, 2026

Description

This reworks the cms validation to work with the new laravel-ruleset-validation package.

  • Any previously defined rulesets now extend a small base class which provides an additional event, all other logic is handled through the package
  • Component validation is no longer handled separately, there is a simple ComponentRules ruleset which forwards calls onto the component for defined rules, messages and attribute labels.
  • Scenarios no longer live on the component, they are handled by the rulesets, constants have been moved. Legacy classes now define the constants as well for backwards compatibility.

@riasvdv riasvdv marked this pull request as ready for review April 21, 2026 11:01
Base automatically changed from feature/create-object to 6.x April 21, 2026 13:50
@riasvdv riasvdv merged commit 14d05b5 into 6.x Apr 21, 2026
16 checks passed
@riasvdv riasvdv deleted the feature/ruleset-package branch April 21, 2026 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant