Skip to content

Commit cc93238

Browse files
authored
Update README.md
1 parent ed63426 commit cc93238

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,20 @@
1-
# encryptable
1+
# Encryptable
2+
This package adds the encryptable trait to your laravel model which automatically encrypts and decrypts them when communicating with the database.
3+
4+
## Installation
5+
6+
First, make sure you have the [Code Orange package registry](http://hub.nub.is/packages) set up correctly.
7+
8+
```
9+
composer require code-orange/adidas-auth-laravel
10+
```
11+
12+
## Usage
13+
14+
Add a protected $encrypted trait to your laravel model. I.E:
15+
16+
```
17+
protected $encryptable = [
18+
'first_name', 'last_name', 'country', 'zipcode', 'housenumber', 'street', 'city', 'phone', 'email',
19+
];
20+
```

0 commit comments

Comments
 (0)