PHPackages                             bvipul/laravel-encrypts-attributes - 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. bvipul/laravel-encrypts-attributes

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

bvipul/laravel-encrypts-attributes
==================================

This package will be used to encrypt attributes of a model.

9334[1 PRs](https://github.com/bvipul/LaravelEncryptsAttributes/pulls)PHP

Since May 30Pushed 7y ago1 watchersCompare

[ Source](https://github.com/bvipul/LaravelEncryptsAttributes)[ Packagist](https://packagist.org/packages/bvipul/laravel-encrypts-attributes)[ RSS](/packages/bvipul-laravel-encrypts-attributes/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (2)Used By (0)

EncryptsAttributes
==================

[](#encryptsattributes)

Purpose: This package will be used to encrypt attributes of a model.

For using this package
----------------------

[](#for-using-this-package)

You can install the package in your laravel installation by firing up the below command:

`composer require bvipul/laravel-encrypts-attributes`

After that, add provider to `config/app.php`

### Configuration

[](#configuration)

After installing the package, register the `Bvipul\EncryptsAttributes\EncryptsServiceProvider::class` in your `config/app.php` configuration file:

```
'providers' => [
    // Other service providers...

    Bvipul\EncryptsAttributes\EncryptsServiceProvider::class
],
```

After this, you can add the trait this package provides, like below I have done in User.php model file.

```
