2017 © Pedro Peláez
 

library laravel-model-encryption

Laravel package to encrypt model attributes

image

famdirksen/laravel-model-encryption

Laravel package to encrypt model attributes

  • Monday, May 14, 2018
  • by robindirksen1
  • Repository
  • 1 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Laravel Model Encryption

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score ![Total Downloads][ico-downloads], (*1)

About

This package can be used by simply adding a trait to the model you want to encrypt., (*2)

Install

Via Composer, (*3)

``` bash $ composer require famdirksen/laravel-model-encryption, (*4)


## Usage To use this package in your own project, you need to add the `trait` to the model. In the following example we installed Larave 5.6 and ran `php artisan make:auth` to setup authentication. You need to use the trait, `ModelEncryption` and add the `protected $encryptable` property to your User class, this way you'll enable model encryption on your user data. app/User.php: ``` php <?php namespace App; use Famdirksen\LaravelModelEncryption\ModelEncryption; use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; class User extends Authenticatable { use Notifiable, ModelEncryption; protected $encryptable = [ 'name', ]; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'name', 'email', 'password', ]; /** * The attributes that should be hidden for arrays. * * @var array */ protected $hidden = [ 'password', 'remember_token', ]; }

Change log

Please see CHANGELOG for more information on what has changed recently., (*5)

Testing

bash $ composer test, (*6)

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details., (*7)

Security

If you discover any security related issues, please email info@famdirksen.nl instead of using the issue tracker., (*8)

Credits

License

The MIT License (MIT). Please see License File for more information., (*9)

The Versions

14/05 2018

dev-master

9999999-dev https://github.com/Famdirksen/Laravel-Model-Encryption

Laravel package to encrypt model attributes

  Sources   Download

MIT

The Requires

  • php ~5.6|~7.0|~7.1|~7.2

 

The Development Requires

famdirksen

14/05 2018

dev-analysis-qJOmEo

dev-analysis-qJOmEo https://github.com/Famdirksen/Laravel-Model-Encryption

Laravel package to encrypt model attributes

  Sources   Download

MIT

The Requires

  • php ~5.6|~7.0|~7.1|~7.2

 

The Development Requires

famdirksen

01/05 2018

dev-analysis-qBR197

dev-analysis-qBR197 https://github.com/Famdirksen/Laravel-Model-Encryption

Laravel package to encrypt model attributes

  Sources   Download

MIT

The Requires

 

The Development Requires

famdirksen

01/05 2018

dev-analysis-8bkwZj

dev-analysis-8bkwZj https://github.com/Famdirksen/Laravel-Model-Encryption

Laravel package to encrypt model attributes

  Sources   Download

MIT

The Requires

 

The Development Requires

famdirksen