WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Premium-Fast-Network/LaraEncryptDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PFN Laravel Encrypt Database

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

About

Encrypt and Decrypt Value to Database

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages