PHPackages                             submtd/laravel-encrypted-fields - 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. submtd/laravel-encrypted-fields

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

submtd/laravel-encrypted-fields
===============================

Provides a trait that allows for encrypted fields on an Eloquent model

1.0.0004(4y ago)1107PHPPHP &gt;=5.3

Since Aug 1Pushed 4y ago1 watchersCompare

[ Source](https://github.com/submtd/laravel-encrypted-fields)[ Packagist](https://packagist.org/packages/submtd/laravel-encrypted-fields)[ RSS](/packages/submtd-laravel-encrypted-fields/feed)WikiDiscussions develop Synced yesterday

READMEChangelog (2)DependenciesVersions (8)Used By (0)

laravel-encrypted-fields
========================

[](#laravel-encrypted-fields)

Provides a trait that allows for encrypted fields on an Eloquent model

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

[](#installation)

```
composer require submtd/laravel-encrypted-fields

```

Usage
-----

[](#usage)

Add the HasEncryptedFields trait to your model class, and add a protected property called $encrypted containing an array of fields that should be encrypted.

```
