Download the PHP package ajangi/laravel-crypt-model without Composer
On this page you can find all versions of the php package ajangi/laravel-crypt-model. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ajangi/laravel-crypt-model
More information about ajangi/laravel-crypt-model
Files in ajangi/laravel-crypt-model
Package laravel-crypt-model
Short Description Encoding and Decoding laravel model attributes made easy.
License MIT
Informations about the package laravel-crypt-model
Laravel-Crypt-Model
Encoding and Decoding laravel model attributes made easy.
Requirements
- minimum php version : 7.1.0
Installation
Hot to use?
1- Register your models
To register your models, you should pass the desired prefix and the class name of your model to.
Typically, you would put the code above in a service provider.
2- Publish config file
then select ajangi/laravel-crypt-model to push config file. After publishing the file will be added.
3- Preparing your models
On each model that needs a hashed prefixed attribute, you should use the LaravelCryptModel\Models\Concerns\HasHashedPrefixedAttributes trait.
4- Getting model with prefixed hashed attributes appended to it
the above code will return :
5- Get model using prefixed hashed attribute
To get model using prefixed hashed attribute you can try two methods :
a. using model :
the above code will return :
b. using :
the above code will return :
Contributing
Take a look at CONTRIBUTING for details.
All versions of laravel-crypt-model with dependencies
facade/ignition-contracts Version ^1.0
illuminate/contracts Version ^8.0
ext-json Version *
illuminate/database Version ^8.0
ext-mcrypt Version *
ext-openssl Version *