PHPackages                             datalogix/laravel-hash-fields - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. datalogix/laravel-hash-fields

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

datalogix/laravel-hash-fields
=============================

Laravel Hash Fields automatically hash ​model fields.

v1.1.0(4y ago)2243MITPHPPHP ^7.3|^8.0

Since Oct 19Pushed 2y ago1 watchersCompare

[ Source](https://github.com/datalogix/laravel-hash-fields)[ Packagist](https://packagist.org/packages/datalogix/laravel-hash-fields)[ Docs](https://github.com/datalogix/laravel-hash-fields)[ RSS](/packages/datalogix-laravel-hash-fields/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (2)Dependencies (6)Versions (3)Used By (0)

Laravel Hash Fields
===================

[](#laravel-hash-fields)

> **Warning**We have decided to stop maintaining this package.
>
> Consider to use [Attribute Casting](https://laravel.com/docs/10.x/eloquent-mutators#attribute-casting) of type `hashed`.

[![Latest Stable Version](https://camo.githubusercontent.com/75fe1b5af11600a491a4dcef536c5c3782fcc4aa9cc7633734d2a89a7b98cefa/68747470733a2f2f706f7365722e707567782e6f72672f646174616c6f6769782f6c61726176656c2d686173682d6669656c64732f76657273696f6e)](https://packagist.org/packages/datalogix/laravel-hash-fields)[![Total Downloads](https://camo.githubusercontent.com/58a658783928514cb5a28cf932c414a6f1fe6715ee23c5208227a382386edee9/68747470733a2f2f706f7365722e707567782e6f72672f646174616c6f6769782f6c61726176656c2d686173682d6669656c64732f646f776e6c6f616473)](https://packagist.org/packages/datalogix/laravel-hash-fields)[![tests](https://github.com/datalogix/laravel-hash-fields/workflows/tests/badge.svg)](https://github.com/datalogix/laravel-hash-fields/actions)[![StyleCI](https://camo.githubusercontent.com/76bf155ffd10f2ac5710996de9af236514189e9f2b1919b3406f8bcce7fe9f74/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3431393036383734362f736869656c643f7374796c653d666c6174)](https://github.styleci.io/repos/419068746)[![codecov](https://camo.githubusercontent.com/8474e24e3e8fc89c5c4f6012c7492d02c95c58c3c6a75ca76a3060200351805f/68747470733a2f2f636f6465636f762e696f2f67682f646174616c6f6769782f6c61726176656c2d686173682d6669656c64732f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/datalogix/laravel-hash-fields)[![License](https://camo.githubusercontent.com/5bcb0341906bf0645b620da98ce095ca6f40b238367c62172bc86b1a3cf3b196/68747470733a2f2f706f7365722e707567782e6f72672f646174616c6f6769782f6c61726176656c2d686173682d6669656c64732f6c6963656e7365)](https://packagist.org/packages/datalogix/laravel-hash-fields)

> Laravel Hash Fields automatically hash ​model fields.

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

[](#installation)

You can install the package via composer:

```
composer require datalogix/laravel-hash-fields
```

The package will automatically register itself.

Usage
-----

[](#usage)

Your Eloquent models should use the `Datalogix\HashFields\HashFields` trait.

Here's an example of how to implement the trait:

```
namespace App;

use Datalogix\HashFields\HashFields;
use Illuminate\Database\Eloquent\Model;

class YourEloquentModel extends Model
{
    use HashFields;
}
```

Customizing fields to hash
--------------------------

[](#customizing-fields-to-hash)

You can also override of property `fieldsToHash`.

By default the package will hashed `password` field.

```
/**
 * The model's fields to hash.
 *
 * @var array
 */
protected static $fieldsToHash = [
    'password',
];
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~96 days

Total

2

Last Release

1620d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/64f33efa07f410c2b5e41054fcf2bd13369172846b9fd71420d2162e90bb6a1a?d=identicon)[ricardogobbosouza](/maintainers/ricardogobbosouza)

---

Top Contributors

[![ricardogobbosouza](https://avatars.githubusercontent.com/u/13064722?v=4)](https://github.com/ricardogobbosouza "ricardogobbosouza (7 commits)")

---

Tags

laravelhashfields

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/datalogix-laravel-hash-fields/health.svg)

```
[![Health](https://phpackages.com/badges/datalogix-laravel-hash-fields/health.svg)](https://phpackages.com/packages/datalogix-laravel-hash-fields)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[vinkius-labs/laravel-page-speed

Laravel Page Speed

2.5k12.5k1](/packages/vinkius-labs-laravel-page-speed)[emargareten/inertia-modal

Inertia Modal is a Laravel package that lets you implement backend-driven modal dialogs for Inertia apps.

90142.9k](/packages/emargareten-inertia-modal)[wearepixel/laravel-cart

A cart implementation for Laravel

1374.8k](/packages/wearepixel-laravel-cart)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.4k](/packages/tomshaw-electricgrid)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
