code-orange/encryptable

Encryptable trait for Laravel models

Maintainers

Package info

github.com/code-orange/encryptable

pkg:composer/code-orange/encryptable

Statistics

Installs: 9

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 1

v1.2 2020-10-30 12:36 UTC

This package is auto-updated.

Last update: 2026-03-09 01:09:17 UTC


README

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