Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A Laravel package with an encryptable trait to manage encrypting database table fields

License

NotificationsYou must be signed in to change notification settings

venturedrake/laravel-encryptable

Repository files navigation

Latest Version on PackagistBuild StatusCodacy BadgeTotal Downloads

Automatically encrypt and decrypt database table fields.

Installation

You can install the package via composer:

composer require venturedrake/laravel-encryptable

You can publish the config file with:

php artisan vendor:publish --provider="VentureDrake\LaravelEncryptable\LaravelEncryptableServiceProvider" --tag="config"

Usage

Add the trait to your model and your encryptable rules.

<?phpnamespaceApp;useIlluminate\Database\Eloquent\Model;useVentureDrake\LaravelEncryptable\Traits\LaravelEncryptableTrait;class Personextends Model{use LaravelEncryptableTrait;/** * Laravel Encryptable Rules * * @var array */protected$encryptable = ['first_name','last_name',    ];...  }

Now when you store, update or read from the model the first_name and last_name fields will automatically be encrypted and decrypted.

Testing

composertest

Changelog

Please seeCHANGELOG for more information on what has changed recently.

Contributing

Please seeCONTRIBUTING for details.

Security Vulnerabilities

Please reviewour security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please seeLicense File for more information.

About

A Laravel package with an encryptable trait to manage encrypting database table fields

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp