Skip to content

🔣 A powerful layer to encode eloquent attributes

License

Notifications You must be signed in to change notification settings

attla/encoded-attributes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Encoded Attributes for eloquent

License Latest Stable Version Total Downloads

🔣 A powerful layer to encode eloquent attributes.

Installation

composer require attla/encoded-attributes

Usage

Add the Attla\EncodedAttributes\HasEncodedAttributes trait to your model.

To automatically turn some attribute into an encoded attribute, add a Encoded or _encoded suffix.

// getting existed attribute
$model->email

// turning an attribute into an encoded attribute
$model->emailEncoded
// or
$model->email_encoded

If you need validate a encoded attribute with rules: exists, unique use the suffix _encoded.

License

This package is licensed under the MIT license © Octha.

About

🔣 A powerful layer to encode eloquent attributes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages