FluentKit / SuperModel by leemason

Enhancement of the already brilliant Eloquent Model Class
93
2
3
Package Data
Maintainer Username: leemason
Maintainer Contact: contact@nohalfpixels.com (Lee Mason)
Package Create Date: 2014-05-20
Package Last Update: 2014-05-27
Language: PHP
License: MIT
Last Refreshed: 2024-04-22 03:08:21
Package Statistics
Total Downloads: 93
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 2
Total Watchers: 3
Total Forks: 0
Total Open Issues: 0

SuperModel

Enhancement of the already brilliant Eloquent Model Class.

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.