koodoo/laravel-trait-encrypt

A Laravel Eloquent Model trait for Encrypting model data

dev-master 2018-05-18 13:50 UTC

This package is not auto-updated.

Last update: 2024-12-13 20:29:28 UTC


README

A Laravel model trait for Encrypting model data

Installation

"koodoo/laravel-trait-encrypt": "dev-master"

Use

In the model

<?php
use Koodoo\laravelTraitEncrypt\Encryptable;
use Encryptable;

protected $encryptable = [
 'table_field_to_be_encrypted',
 'table_field_to_be_encrypted',
 'table_field_to_be_encrypted',
 'table_field_to_be_encrypted'
];