This is an implementation of Encryption in Laravel with CipherSweet. A blog about this can be found here: Search and Encrypt Data in Laravel with CipherSweet | Fajarwz.
composer install
Create .env
from .env.example
and customize it based on your environment.
cp .env.example .env
php artisan key:generate
php artisan ciphersweet:generate-key
php artisan migrate --seed
Run the following script in the tinker (php artisan tinker
):
User::whereBlind('id_card_number', 'id_card_number_index', 'asdajsdjfhjfihwe')->first()