2017 © Pedro Peláez
 

library encryptable

A simple trait to make attributes encrypted in the database

image

gregoryduckworth/encryptable

A simple trait to make attributes encrypted in the database

  • Tuesday, March 6, 2018
  • by gregoryduckworth
  • Repository
  • 1 Watchers
  • 1 Stars
  • 297 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 10 % Grown

The README.md

Encryptable, an ecryptable trait for Laravel

Encryptable is a trait for Laravel that adds simple encryptable functions to Eloquent Models., (*1)

Encryptable allows you to encrypt data as in enters the database and decrypts it on its retrieval., (*2)

Installation

Simple add the package to your composer.json file and run composer update., (*3)

"gregoryduckworth/encryptable": "1.*",

Usage

Add the trait to your model and your encryptable rules., (*4)

use GregoryDuckworth\Encryptable\EncryptableTrait;

class User extends Authenticatable
{
    use EncryptableTrait;

    /**
     * Encryptable Rules
     *
     * @var array
     */
    protected $encryptable = [
        'name',
        'email',
    ];

...
}

Now, whenever you interact with the model, the name and email will automatically be encrypted and decrypted between your frontend and the database., (*5)

Contributing

Anyone is welcome to contribute. Fork, make your changes and then submit a pull request., (*6)

The Versions

06/03 2018

dev-master

9999999-dev

A simple trait to make attributes encrypted in the database

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Greg Duckworth

database laravel eloquent encrypt

06/03 2018

1.0.1

1.0.1.0

A simple trait to make attributes encrypted in the database

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Greg Duckworth

database laravel eloquent encrypt

20/10 2016

1.0.0

1.0.0.0

A simple trait to make attributes encrypted in the database

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Greg Duckworth

database laravel eloquent encrypt