wargog/eloquence-validable
Adds self-validating behavior to Laravel Eloquent models. Use the Validable trait to define validation rules directly on your models and validate automatically on save, keeping data integrity close to your domain logic.
Eloquence Validable adds self-validating behavior to Laravel Eloquent models. By using the Validable trait, you declare validation rules directly on the model instead of scattering them across controllers or form requests—so every save(), create(), or update() call automatically validates attributes and rejects invalid data.
Rules are defined in a $rules property (with optional custom messages), keeping models the single source of truth for their own integrity.
How can I help you explore Laravel packages today?