Installation
composer require bradietilley/laravel-rules
The rule() helper is autoloaded via Composer and requires no manual require.
Versions
| Package | PHP | Laravel |
|---|---|---|
| v1.2.x | 8.1 – 8.2 | 10 |
| v1.3.x | 8.2 – 8.3 | 11 |
| v1.4.x | 8.2+ | 12 |
Laravel 11 and earlier are no longer supported on the current line. See the changelog for breaking changes.
Next steps
- Usage — defining and composing rules
- Customisation — macros and custom
Ruleclasses