Package Data | |
---|---|
Maintainer Username: | gonzalom |
Package Create Date: | 2017-01-28 |
Package Last Update: | 2017-01-28 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-22 03:16:31 |
Package Statistics | |
---|---|
Total Downloads: | 473 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Gives the models the ability to be validated before saved.
Gives the models the ability to auto-validate them selves.
This module is not for business logic, but to protect the data in the database.
In use with the triun\laravel-model-base generator, the skeleton modifier of this package will generate the rules automatically, based on the table scheme.
Require this package with composer using the following command:
composer require triun/laravel-model-validable:dev-master
DO NOT install in development mode in composer if you are using the contract interface or the trait
To install this package on only development systems, add the --dev
flag to your composer command:
composer require --dev triun/laravel-model-validable:dev-master
If you want to add the skeleton modifiers to the model base generator, you can do so adding the modifiers in the config/model-base.php
file:
'modifiers' => [
\Triun\ModelValidable\Modifiers\ModelValidableModifier::class,
\Triun\ModelValidable\Modifiers\RulesModifier::class,
],
TODO
Bug reports and feature requests can be submitted on the Github Issue Tracker.
See CONTRIBUTING.md for information.
The Laravel Model Base is open-sourced software licensed under the MIT license