bilan/laravel-encrypt

There is no license information available for the latest version (v1.0.2) of this package.

Installs: 5

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/bilan/laravel-encrypt

v1.0.2 2023-10-26 12:15 UTC

This package is auto-updated.

Last update: 2025-09-26 16:17:57 UTC


README

  • Use trait for your models when you want to hash attribute, in the database type of field for the attribute should be TEXT:

  • Example for Model:

use ModelUseEncryptedAttributes;


/**
 * @return Attribute
 */
public function host(): Attribute
{
    return $this->encryptedAttribute();
}
  • Attribute will automatically been hashed for save/update and uhashed when you will initialize the model