samWhisker / laravel-trait-encrypt by samWhisker

A Laravel Eloquent Model trait for Encrypting modal data
12,856
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-11-14 15:10:44
Package Statistics
Total Downloads: 12,856
Monthly Downloads: 340
Daily Downloads: 21
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'
];