premiumfastnet/lara-encrypt-db

Encrypt and Decrypt Value to Database

Installs: 120

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/premiumfastnet/lara-encrypt-db

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

This package is auto-updated.

Last update: 2025-10-13 18:42:43 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