An open API service indexing awesome lists of open source software.

https://github.com/bvipul/laravelencryptsattributes

This package will be used to encrypt attributes of a model.
https://github.com/bvipul/laravelencryptsattributes

encryption laravel laravel-5-package php trait

Last synced: 7 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# EncryptsAttributes

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

## 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

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

```php
'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.

```php