Laravel Eloquent - Encrypting/Decrypt Data on call

后端 未结 2 2005
轻奢々
轻奢々 2021-02-07 11:29

I can use Crypt to encrypt/decrypt my data. I want to encrypt some information in my db (such as the name, email, phone number to name a few).

Assuming that

2条回答
  •  深忆病人
    2021-02-07 12:14

    It's worth mentioning Elocrypt library for Laravel 4. It's a more elaborate solution that works the same way. If you're using Laravel 5 use this one instead: Elocrypt 5.

提交回复
热议问题