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.
- Host: GitHub
- URL: https://github.com/bvipul/laravelencryptsattributes
- Owner: bvipul
- License: mit
- Created: 2018-05-27T07:56:18.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-04T21:03:46.000Z (over 6 years ago)
- Last Synced: 2024-10-12T10:45:36.389Z (about 1 year ago)
- Topics: encryption, laravel, laravel-5-package, php, trait
- Language: PHP
- Size: 11.7 KB
- Stars: 10
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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