PHP code example of alkhachatryan / encryptable
1. Go to this page and download the library: Download alkhachatryan/encryptable library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
alkhachatryan / encryptable example snippets
class User extends Model
{
use Encryptable;
/**
* Fillable columns
*/
protected $fillable = ['name', 'email', 'password'];
/**
* Columns which should be encrypted
*/
protected $encryptable = ['name', 'email'];
}