PHPackages                             venturedrake/laravel-encryptable - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. venturedrake/laravel-encryptable

ActiveLibrary[Database &amp; ORM](/categories/database)

venturedrake/laravel-encryptable
================================

Automatically encrypt and decrypt database table fields

0.1.6(1y ago)311.8k↑50%11MITPHPPHP ^7.2|^8.0

Since Jan 8Pushed 1y ago1 watchersCompare

[ Source](https://github.com/venturedrake/laravel-encryptable)[ Packagist](https://packagist.org/packages/venturedrake/laravel-encryptable)[ Docs](https://github.com/venturedrake/laravel-encryptable)[ GitHub Sponsors](https://github.com/venturedrake)[ RSS](/packages/venturedrake-laravel-encryptable/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (3)Versions (9)Used By (1)

Laravel Encryptable
===================

[](#laravel-encryptable)

[![Latest Version on Packagist](https://camo.githubusercontent.com/14763ba95abe456185c0a5a711438fad8bf86909d1841268fb40cd89f38ed67a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f76656e747572656472616b652f6c61726176656c2d656e637279707461626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/venturedrake/laravel-encryptable)[![Build Status](https://camo.githubusercontent.com/d57f137049c5d88c39b5d3fffecbacd5ef4f3d8b75a87b4060ecedde8c9a3715/68747470733a2f2f7472617669732d63692e636f6d2f76656e747572656472616b652f6c61726176656c2d656e637279707461626c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/venturedrake/laravel-encryptable)[![Codacy Badge](https://camo.githubusercontent.com/8c536229cf26e95ec3cd2fcc4661442ce56bcbcf3b1f2e6377c682437612b330/68747470733a2f2f6170702e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3365373835393461333733333435346539656265643831396465626564393835)](https://www.codacy.com/gh/venturedrake/laravel-encryptable/dashboard?utm_source=github.com&utm_medium=referral&utm_content=venturedrake/laravel-encryptable&utm_campaign=Badge_Grade)[![Total Downloads](https://camo.githubusercontent.com/ffe42abea95c9b5fd04da4572bcaf98933dcc02b636de9130992f82cd3380c19/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f76656e747572656472616b652f6c61726176656c2d656e637279707461626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/venturedrake/laravel-encryptable)

Automatically encrypt and decrypt database table fields.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require venturedrake/laravel-encryptable
```

You can publish the config file with:

```
php artisan vendor:publish --provider="VentureDrake\LaravelEncryptable\LaravelEncryptableServiceProvider" --tag="config"
```

Usage
-----

[](#usage)

Add the trait to your model and your encryptable rules.

```
