Add Laravel Boost skill: resources/boost/skills/anourvalar-eloquent-validation/SKILL.md#1
Open
AnourValar wants to merge 1 commit into
Open
Add Laravel Boost skill: resources/boost/skills/anourvalar-eloquent-validation/SKILL.md#1AnourValar wants to merge 1 commit into
AnourValar wants to merge 1 commit into
Conversation
Document ModelTrait, CrudService, ValidatorHelper, ValidationException, ManyToManyTrait, Tests\ValidationTrait, the bundled artisan commands (make:model-validation, make:observer-validation, model:validate), and the globally-registered custom rules (config:, array_keys, array_keys_only, array_keys_id, not_empty) so laravel/boost agents know how to use the package even though it ships no facades.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a
laravel/boostskill so AI agents working in projects that depend onanourvalar/eloquent-validationautomatically pick up the package's public surface.The new file:
resources/boost/skills/anourvalar-eloquent-validation/SKILL.mdWhat it documents (all verified against the source):
ModelTrait- the trait-defined properties ($trim,$nullable,$computed,$unchangeable,$unique,$jsonNested) and added methods (validate,validateDelete,beforeValidate,scopeFields,scopePublishFields,authorize,mergeJsonNested,setAttributeoverrides, ...).CrudService::execute/syncfor bulk create/update/delete and reconciliation flows.ValidatorHelper(afterValidate,mutateArray,mutateJsonb,isMatching).Exceptions\ValidationException(addPrefix,replaceKey).Features\ManyToManyTrait::onChangedM2Mfor observer-driven pivot sync.Tests\ValidationTraitPHPUnit helpers (assertValidationSuccess,assertValidationFailed, etc.).config:<key>,array_keys,array_keys_only,array_keys_id,not_empty) and the:max/:minreplacer override.make:model-validation,make:observer-validation,model:validate.setAttributestrictness outside production, theuniquerule canonisation, attribute-name caching, soft-delete-aware uniqueness checks, etc.).Format follows the Boost skill spec: YAML frontmatter (
name,description) plus a focused, agent-oriented markdown body.Test plan
src/(trait property handling, validate/validateDelete signatures, registered rules, artisan commands).resources/boost/skills/).Generated by Claude Code