Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Eloquentencryption Laravel Package

richardstyles/eloquentencryption

View on GitHub
Deep Wiki
Context7
1.1.1
  • Update README.md
1.1.0
  • Refactor how blueprint helper's are included.
1.0.0
  • initial release
  • Adds encrypted field type to migrations blueprints.
  • Adds encrypt:generate command to create RSA keys.
  • Adds Encrypted cast to encode/decode the fields which have been set on a model.
3.0
  • As of Laravel 8.14 you can specify the built in Eloquent Encryption casting setting a model's encryptUsing in your app service provider. This allows for automatic separation of your APP_KEY, when using a different Illuminate\Contracts\Encryption\Encrypter class/instance.
EncryptedCast::encryptUsing(new \RichardStyles\EloquentEncryption\EloquentEncryption);

Then simply define your casts in your model as you normally would.

class EncryptedCast extends Model
{
    public $casts = [
        'secret' => 'encrypted',
        'secret_array' => 'encrypted:array',
        'secret_json' => 'encrypted:json',
        'secret_object' => 'encrypted:object',
        'secret_collection' => 'encrypted:collection',
    ];
}
2.0
  • EloquentEncryption now uses Illuminate\Contracts\Encryption\Encrypter contract.
  • BC If relying on 1.x use encryptString() or decryptString() functions if you are using this encryption elsewhere in your application. As the default encrypt/decrypt function now serialize values automatically, this may cause unexpected errors during decrypting.
1.5
1.4
  • Add optional support to define RsaKeyHandler to store, retrieved generated RSA keys.
1.3
  • bug fix
1.2.0
  • Add additional Cast classes.
  • EncryptedInteger
  • EncryptedFloat
  • EncryptedCollection
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle