samWhisker / laravel-trait-encrypt by samWhisker

A Laravel Eloquent Model trait for Encrypting modal data
13,181
3
1
Package Data
Maintainer Username: samWhisker
Maintainer Contact: sam@koodoocreative.co.uk (Sam Whisker)
Package Create Date: 2016-04-08
Package Last Update: 2018-05-18
Language: PHP
License: MIT
Last Refreshed: 2024-12-14 15:10:07
Package Statistics
Total Downloads: 13,181
Monthly Downloads: 317
Daily Downloads: 5
Total Stars: 3
Total Watchers: 1
Total Forks: 2
Total Open Issues: 1

laravel-trait-encrypt

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