Download the PHP package jfelixstudio/laravel-mysql-encrypt without Composer
On this page you can find all versions of the php package jfelixstudio/laravel-mysql-encrypt. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jfelixstudio/laravel-mysql-encrypt
More information about jfelixstudio/laravel-mysql-encrypt
Files in jfelixstudio/laravel-mysql-encrypt
Package laravel-mysql-encrypt
Short Description Laravel 5.x | 6.x | 7.x | 8.x Database encryption mysql side
License MIT
Informations about the package laravel-mysql-encrypt
Laravel/Lumen MySql AES Encrypt/Decrypt
Laravel/Lumen database encryption at database side using native AES_DECRYPT and AES_ENCRYPT functions. Automatically encrypt and decrypt fields in your Models.
Install
1. Composer
2. Publish config (optional)
Laravel
Lumen
3. Configure Provider
Laravel
-
For Laravel 5.5 or later, the service provider is automatically loaded, skip this step.
- For Laravel 5.4 or earlier, add the following to
config/app.php
:
Lumen
- For Lumen, add the following to
bootstrap/app.php
:
4. Set encryption key in .env
file
Update Models
Validators
unique_encrypted
exists_encrypted
Scopes
Custom Local scopes available:
whereEncrypted
whereInEncrypted
whereNotEncrypted
orWhereEncrypted
orWhereNotEncrypted
orderByEncrypted
Global scope DecryptSelectScope
automatically booted in models using Encryptable
trait.
Schema columns to support encrypted data
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-mysql-encrypt with dependencies
illuminate/support Version ^5.0|^6.0|^7.0|^8.0|^9.0
illuminate/database Version ^5.0|^6.0|^7.0|^8.0|^9.0