Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 550 Bytes

File metadata and controls

20 lines (14 loc) · 550 Bytes

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',
	];