Skip to content

kduma-OSS/LV-eloquent-encryptable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 

Repository files navigation

L5-eloquent-encryptable

Latest Stable Version Total Downloads Latest Unstable Version License SensioLabsInsight StyleCI

Adds possibility to encrypt fields in Laravel Eloquent models.

Check full documentation here: opensource.duma.sh/libraries/php/eloquent-encryptable

Setup

Add the package to the require section of your composer.json and run composer update

"kduma/eloquent-encryptable": "^1.1"

Prepare models

In your model add following lines:

use \KDuma\Eloquent\Encryptable;
protected $encrypted=['list', 'of', 'fields', 'you', 'wan\'t', 'to', 'encrypt'];

Usage

It will be automaticly encrypting and decrypting fields defined in $encrypted property of your model.

Those fields must be string or text for longer values.

YOTTARAM

A special thanks to Jonathan Stavis, an original code creator that this package is based on.

Packagist

View this package on Packagist.org: kduma/eloquent-encryptable

About

Adds possibility to encrypt fields in Laravel Eloquent models.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages