Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Ruleset Validation Laravel Package

craftcms/laravel-ruleset-validation

Validate Laravel request data against Craft CMS field rulesets. Map Craft-style constraints (required, min/max, regex, etc.) into Laravel’s validator, keeping validation logic consistent between Craft and Laravel apps.

View on GitHub
Deep Wiki
Context7
1.1.0

Adds a ->withScenario method

If you only want to switch scenarios for one operation, use withScenario(). The previous scenario is restored after the callback returns or throws.

$validated = $data->ruleset->withScenario(
    PostRuleset::SCENARIO_DRAFT,
    fn () => $data->ruleset->validate(),
);

Full Changelog: https://github.com/craftcms/laravel-ruleset-validation/compare/1.0.2...1.1.0

1.0.2
  • Make Ruleset classes safe to serialize

Full Changelog: https://github.com/craftcms/laravel-ruleset-validation/compare/1.0.1...1.0.2

1.0.1
  • Fix issue where child ruleset from method would not be used when parent has a ruleset attribute

Full Changelog: https://github.com/craftcms/laravel-ruleset-validation/compare/1.0.0...1.0.1

1.0.0

What's Changed

  • Initial release

Full Changelog: https://github.com/craftcms/laravel-ruleset-validation/commits/1.0.0

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
calmfox/watch-sylius
damienfern/grpc-symfony-bundle
atoolo/index-bundle
atoolo/genai-bundle
coprotoai/laravel-ticket
davidjln/llm-carbon-bundle
cryonighter/valid-request-bundle
coolms/taxonomy-bundle
coolms/field-bundle
articulate-orm/symfony
aaix/laravel-tall-architect
ephoto/akeneo-connector
emmanuelballery/eb-plantumlbundle
emielburgman/symfony-visitor-beacon
emielburgman/symfony-visit-storage
emielburgman/symfony-security-headers
emielburgman/symfony-log-viewer
emarref/xdebug-bundle
emarref/pubnub-bundle
elriseio/finance-money-bundle