PHPackages                             hexathos/laravel-hasuserdata - 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. [Database &amp; ORM](/categories/database)
4. /
5. hexathos/laravel-hasuserdata

ActiveLibrary[Database &amp; ORM](/categories/database)

hexathos/laravel-hasuserdata
============================

Autofills updated\_by, created\_by, updated\_at and created\_at

v0.1.0(3y ago)0207MITPHPPHP &gt;=5.4.0

Since Sep 30Pushed 3y ago1 watchersCompare

[ Source](https://github.com/hexathos/laravel-hasuserdata)[ Packagist](https://packagist.org/packages/hexathos/laravel-hasuserdata)[ RSS](/packages/hexathos-laravel-hasuserdata/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (1)Versions (2)Used By (0)

Laravel-HasUserData
===================

[](#laravel-hasuserdata)

About
-----

[](#about)

This package automaticly adds username to models that have the Hexathos\\Traits\\HasUserData trait while creating or updating a Model.

It requires string-able fields "created\_by" and "updated\_by" in your database.

How to install
--------------

[](#how-to-install)

Require the package:

`$ composer require hexathos/laravel-hasuserdata`

Create a migration that adds created\_by and updated\_by fields to your models table

Include the Namespace in your Model and add the trait

```
namespace App\Models;

use Hexathos\Traits\HasUserData;

/* .snipped. */

use HasUserData;

```

That's it.

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

1371d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/07b6ecdf8e199991c43a3cca8eeb0ea8a191629efd549bb1e45b053d95dca7e2?d=identicon)[hexathos](/maintainers/hexathos)

---

Top Contributors

[![hexathos](https://avatars.githubusercontent.com/u/92624?v=4)](https://github.com/hexathos "hexathos (1 commits)")

---

Tags

laraveldatabasemodeleloquentCreatedByupdatedByuserdata

### Embed Badge

![Health badge](/badges/hexathos-laravel-hasuserdata/health.svg)

```
[![Health](https://phpackages.com/badges/hexathos-laravel-hasuserdata/health.svg)](https://phpackages.com/packages/hexathos-laravel-hasuserdata)
```

###  Alternatives

[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.4M95](/packages/mongodb-laravel-mongodb)[spiritix/lada-cache

A Redis based, automated and scalable database caching layer for Laravel

592456.3k2](/packages/spiritix-lada-cache)[laravel-clickhouse/laravel-clickhouse

A ClickHouse based Eloquent model and Query builder for Laravel

20615.6k](/packages/laravel-clickhouse-laravel-clickhouse)[mvanduijker/laravel-model-exists-rule

Validation rule to check if a model exists

22215.3k2](/packages/mvanduijker-laravel-model-exists-rule)

PHPackages © 2026

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