Skip to content

Gives the models the ability to be validated before saved.

License

Notifications You must be signed in to change notification settings

Triun/laravel-model-validable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Model Validable

Latest Version on Packagist Pre Release Version on Packagist Latest Unstable Version Build Status Total Downloads Software License

Gives the models the ability to be validated before saved.

About

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.

Installation

Require this package with composer using the following command:

composer require triun/laravel-model-validable:dev-master

Development only installation

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

Skeleton Modifiers

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,
    ],

Usage

TODO

Issues

Bug reports and feature requests can be submitted on the Github Issue Tracker.

Contributing

See CONTRIBUTING.md for information.

License

The Laravel Model Base is open-sourced software licensed under the MIT license

About

Gives the models the ability to be validated before saved.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages