premiumfastnet / lara-encrypt-db
Encrypt and Decrypt Value to Database
v1.2.1
2020-11-13 07:22 UTC
Requires
- php: ^7.2
- laravel/framework: 6.*
README
Encrypt and Decrypt Value to Database
Installation
composer require premiumfastnet/lara-encrypt-db
How to Use
<?php namespace App; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use PremiumFastNetwork\Traits\EncryptDB; // add this class User extends Authenticatable { use EncryptDB; /** * List Attributes For Encrypt */ protected $encryptDB = ['token']; // rest of your model