Skip to content

code-orange/encryptable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Encryptable

This package adds the encryptable trait to your laravel model which automatically encrypts and decrypts them when communicating with the database.

Installation

First, make sure you have the Code Orange package registry set up correctly.

composer require code-orange/encryptable

Usage

Add a protected $encrypted trait to your laravel model. I.E:

protected $encryptable = [
		'first_name', 'last_name', 'country', 'zipcode', 'housenumber', 'street', 'city', 'phone', 'email',
	];