Skip to content

Commit

Permalink
Merge pull request #10 from khepin/readme
Browse files Browse the repository at this point in the history
Update readme with "what this is for"
  • Loading branch information
elliotfehr authored Sep 29, 2017
2 parents c92b644 + b98a440 commit 2781aa0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ Eloquent Mutators
[![StyleCI](https://styleci.io/repos/102659341/shield?branch=master)](https://styleci.io/repos/102659341)
[![CircleCI](https://circleci.com/gh/Weebly/laravel-mutate/tree/master.svg?style=shield)](https://circleci.com/gh/Weebly/laravel-mutate)

This package allows you to map your model attributes to database columns when the type in the PHP model does not match the type in the database column.

This could be using `$model->ip_address` as a `string` in your eloquent model but storing it as a `BINARY(16)` in the database for efficiency. Or having a string always encrypted in the DB but readable in clear form within your models.

Installing
----------

Expand Down

0 comments on commit 2781aa0

Please sign in to comment.