Skip to content

moneyworks/Model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Abstract eloquent-like entity Model

SensioLabsInsight

This model provides an eloquent-like base class that can be used to build custom models in Laravel or other frameworks.

Features

  • Accessors and mutators
  • Model to Array and JSON conversion
  • Hidden attributes in Array/JSON conversion
  • Appending accessors and mutators to Array/JSON conversion
  • Guard/Unguard attributes from mass assign
  • Attribute casting
  • Control attributes case in Array/JSON representation

You can read more about these features and the original Eloquent model on http://laravel.com/docs/eloquent