Weave 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
eloquent-validation
anourvalar/eloquent-validation
claude-code
eloquent
model-trait
validation
computed-attributes
unique-constraints
openapi
localization

Use this skill when working with Eloquent models that include the \AnourValar\EloquentValidation\ModelTrait trait.

Install
php artisan boost:add-skill anourvalar/eloquent-validation

Save this content to: .claude/skills/eloquent-model-update/SKILL.md

# Eloquent Validation: ModelTrait

## When to use this skill

Use this skill when working with Eloquent models that include the \AnourValar\EloquentValidation\ModelTrait trait.

## Features

- protected $trim -> trims attribute values on set.

- protected $nullable -> converts empty values to NULL on set.

- protected $computed -> attributes calculated inside the model or observer.

- protected $unchangeable -> attributes that cannot be changed for existing records.

- protected $unique -> list of sets of attributes that must be unique across records.

## REQUIRED when adding/changing model attributes

- Update localization attribute names in lang/*/models/<model>.php.

- Update OpenAPI schemas (light, heavy scopes) in resources/swagger/schemas/<model>_*.yaml [if exists].

Eloquent Validation: ModelTrait

When to use this skill

Use this skill when working with Eloquent models that include the \AnourValar\EloquentValidation\ModelTrait trait.

Features

  • protected $trim -> trims attribute values on set.

  • protected $nullable -> converts empty values to NULL on set.

  • protected $computed -> attributes calculated inside the model or observer.

  • protected $unchangeable -> attributes that cannot be changed for existing records.

  • protected $unique -> list of sets of attributes that must be unique across records.

REQUIRED when adding/changing model attributes

  • Update localization attribute names in lang/*/models/.php.

  • Update OpenAPI schemas (light, heavy scopes) in resources/swagger/schemas/_*.yaml [if exists].

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.
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package