2017 © Pedro Peláez
 

library laravel-model-validable

Gives the models the ability to be validated before saved.

image

triun/laravel-model-validable

Gives the models the ability to be validated before saved.

  • Saturday, January 28, 2017
  • by gonzalom
  • Repository
  • 1 Watchers
  • 1 Stars
  • 467 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Laravel Model Validable

Latest Version on Packagist Pre Release Version on Packagist Latest Unstable Version Build Status Total Downloads ![Software License][ico-license], (*1)

Gives the models the ability to be validated before saved., (*2)

About

Gives the models the ability to auto-validate them selves., (*3)

This module is not for business logic, but to protect the data in the database., (*4)

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., (*5)

Installation

Require this package with composer using the following command:, (*6)

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, (*7)

To install this package on only development systems, add the --dev flag to your composer command:, (*8)

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:, (*9)

    'modifiers' => [
        \Triun\ModelValidable\Modifiers\ModelValidableModifier::class,
        \Triun\ModelValidable\Modifiers\RulesModifier::class,
    ],

Usage

TODO, (*10)

Issues

Bug reports and feature requests can be submitted on the Github Issue Tracker., (*11)

Contributing

See CONTRIBUTING.md for information., (*12)

License

The Laravel Model Base is open-sourced software licensed under the MIT license, (*13)

The Versions

28/01 2017

dev-master

9999999-dev https://github.com/Triun

Gives the models the ability to be validated before saved.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel validator validation eloquent generator model rules make validable