2017 © Pedro Peláez
 

library supermodel

Enhancement of the already brilliant Eloquent Model Class

image

fluentkit/supermodel

Enhancement of the already brilliant Eloquent Model Class

  • Tuesday, May 27, 2014
  • by leemason
  • Repository
  • 2 Watchers
  • 2 Stars
  • 84 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

SuperModel

Enhancement of the already brilliant Eloquent Model Class., (*1)

Features

  • Auto validation - with seperate scopes (global/create/update)
  • Custom validation messages based on scope (global/create/update)
  • Schema Definition for type casting, password hashing, and array/object access of data
  • Passwords are hashed when setting value, but validation is done on none hashed value
  • Model values can be saved as arrays/objects via serialization
  • Addition of ->validate() function for validating changes before save (called on save anyway)
  • Addition of ->errors() function which contains the validation errors messagebag
  • Auto Parsing of unique rules, simply provide the unique validation as normal and the table,field,id,column will be added for you (if not provided), or for custom queries with where clauses build the rule with the placeholder {id} and this will be replaced during validation

Usage

Coming Soon., (*2)

The Versions

27/05 2014

dev-master

9999999-dev https://github.com/FluentKit/SuperModel

Enhancement of the already brilliant Eloquent Model Class

  Sources   Download

MIT

The Requires

 

orm database laravel sql framework validation eloquent activerecord active record