premiumfastnet/lara-encrypt-db

Encrypt and Decrypt Value to Database

v1.2.1 2020-11-13 07:22 UTC

This package is auto-updated.

Last update: 2024-04-13 15:34:10 UTC


README

Latest Stable Version Latest Unstable Version Total Downloads License StyleCI

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