2017 © Pedro Peláez
 

library laravel_autovalidation

This package provides to autogenerate rules from database constraints with default message and autovalidate your model before save or update.

image

raffaele/laravel_autovalidation

This package provides to autogenerate rules from database constraints with default message and autovalidate your model before save or update.

  • Friday, August 18, 2017
  • by Kimal
  • Repository
  • 1 Watchers
  • 1 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Laravel Autovalidation

Installation

composer require raffaele/laravel_autovalidation, (*1)

Usage Example

class YourModel extends raffaele\ValidationModel {, (*2)

}, (*3)

Disable automatic validate

Set in your model $autoValidate = false;, (*4)

Array notValidate

If you wish exclude from validation some field, you have to add those to $notValidate = [] array., (*5)

Standard/custom validation message

Automatic validation uses the standarrd messages from laravel validation. If you want it's possibile use your custom messages, override $messages array., (*6)

Password and email fields

This fields have particolar rules, so if you have this fields thats have particolar name, please, help me to populate the
$passwordLabelCandidate and $emailLabelCandidate array., (*7)

Have fun! ;-), (*8)

The Versions

18/08 2017

dev-master

9999999-dev

This package provides to autogenerate rules from database constraints with default message and autovalidate your model before save or update.

  Sources   Download

MIT

The Requires

 

by Raffaele

database laravel validation