Download the PHP package morrislaptop/laravel-instantiate-rule without Composer
On this page you can find all versions of the php package morrislaptop/laravel-instantiate-rule. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download morrislaptop/laravel-instantiate-rule
More information about morrislaptop/laravel-instantiate-rule
Files in morrislaptop/laravel-instantiate-rule
Package laravel-instantiate-rule
Short Description Validate against an object's constructor
License MIT
Homepage https://github.com/morrislaptop/laravel-instantiate-rule
Informations about the package laravel-instantiate-rule
Validate against an object's constructor
Your validation rules often belong in your domain model. Use the InstantiateRule
to bring those rules
into your Laravel validation.
Installation
You can install the package via composer:
Usage
As a simple rule
For complex objects, it's assumed array keys match the constructor object or are in the order of the constructor.
Or you can specify a custom static contructor if you like...
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Craig Morris
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-instantiate-rule with dependencies
spatie/laravel-package-tools Version ^1.9.2
illuminate/contracts Version ^9.0