Skip to content

Commit

Permalink
Merge pull request #66 from benyanke/patch-1
Browse files Browse the repository at this point in the history
Additional documentation on default values
  • Loading branch information
kodeine committed Sep 28, 2019
2 parents eff1136 + 0232e84 commit d75b7d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ Additionally, you can set default values by setting an array called `$defaultMet

This is be the desired and expected functionality for most projects, but be aware that you may need to reimplement default functionality with your own custom accessors and mutators if this functionality does not fit your needs.

This functionality is most suited for meta entries that note exceptions to rules. For example: employees sick out of office (default value: in office), nodes taken down for maintance (default value: node up), etc. This means the table doesn't need to store data on every entry which is in the expected state, only those rows in the exceptional state, and allows the rows to have a default state upon creation without needing to add code to write it.

```
public $defaultMetaValues = [
'is_user_home_sick' => false,
Expand Down

0 comments on commit d75b7d8

Please sign in to comment.