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 Validation Rules Laravel Package

spatie/laravel-validation-rules

Handy Laravel validation rules by Spatie: Authorized (policy checks), CountryCode, Currency, Enum, ModelsExist, and Delimited. Installs via Composer, auto-registers, and supports publishing translations for customization.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Accelerates feature development by eliminating custom validation logic for common scenarios (e.g., ISO country/currency codes, enum validation, permission checks)
  • Reduces technical debt through reusable, community-tested rules that ensure consistency across the application
  • Enables compliance with industry standards (ISO 3166/4217) without manual implementation or maintenance
  • Supports complex validation patterns like multi-value fields (Delimited) and model existence checks (ModelsExist) out-of-the-box
  • Lowers development costs by avoiding reinvention of wheel for standard validation use cases

When to Consider This Package

  • Adopt when building Laravel applications requiring standard validation rules not natively supported by Laravel (e.g., country codes, currency validation, enum-based inputs)
  • Ideal for teams prioritizing developer productivity and code consistency, especially when scaling features involving user permissions, data normalization, or multi-value fields
  • Consider alternatives if:
    • Validation requirements are highly specialized and not covered by existing rules
    • The project
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.
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope
anil/file-picker
broqit/fields-ai