PHPackages                             custom-d/hashed-search - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Search &amp; Filtering](/categories/search)
4. /
5. custom-d/hashed-search

ActiveLibrary[Search &amp; Filtering](/categories/search)

custom-d/hashed-search
======================

A hashed search package for adding a searchable hash to your encrypted database columns

v1.4.0(2y ago)32.6k2MITPHPPHP ^8.1CI failing

Since Apr 29Pushed 11mo ago6 watchersCompare

[ Source](https://github.com/customd/hashed-search)[ Packagist](https://packagist.org/packages/custom-d/hashed-search)[ RSS](/packages/custom-d-hashed-search/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (3)Versions (20)Used By (0)

Laravel Hashed Search
=====================

[](#laravel-hashed-search)

[![PHP Composer](https://github.com/customd/hashed-search/actions/workflows/php.yml/badge.svg)](https://github.com/customd/hashed-search/actions/workflows/php.yml)[![Packagist](https://camo.githubusercontent.com/8331d221c6381aa49f06c40718aa0a680abdfdfcbe9bb3552dd3c25b13851032/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f637573746f6d2d642f6861736865642d7365617263682e737667)](https://packagist.org/packages/customd/hashed-search)[![Packagist](https://camo.githubusercontent.com/149c345ecaef3598846c5bbbfb0bf9ccda8e46c6dcff2f0d58cfed0700d8108d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f637573746f6d2d642f6861736865642d7365617263682e737667)](https://packagist.org/packages/customd/hashed-search)[![Release](https://github.com/customd/hashed-search/actions/workflows/default.yml/badge.svg)](https://github.com/customd/hashed-search/actions/workflows/default.yml)

Package description: Package to allow hashing of encrypted data for searching

Installation
------------

[](#installation)

Install via composer

```
composer require custom-d/hashed-search
```

### Publish package assets

[](#publish-package-assets)

```
php artisan vendor:publish --provider="CustomD\HashedSearch\ServiceProvider"
```

Usage
-----

[](#usage)

### Eloqent Models

[](#eloqent-models)

In your model add the `use CustomD\HashedSearch\Contracts\HasSearchableHash;` trait and add a new property `protected $searchableHash = ['bank_name'];`

Eg:

```
