PHPackages                             kayiwarahim/laravel-userstamps - 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. kayiwarahim/laravel-userstamps

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

kayiwarahim/laravel-userstamps
==============================

A simple Laravel package for Eloquent Model user specific fields by Rahim.

v6.0.0(1y ago)01MITPHPPHP ^7.2 || ^8.0 || ^8.1 || ^8.2

Since Mar 1Pushed 1y agoCompare

[ Source](https://github.com/kayiwarahim/laravel-userstamps)[ Packagist](https://packagist.org/packages/kayiwarahim/laravel-userstamps)[ Docs](https://github.com/kayiwarahim/laravel-userstamps)[ RSS](/packages/kayiwarahim-laravel-userstamps/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Laravel Userstamps
==================

[](#laravel-userstamps)

Laravel Userstamps is a simple Laravel package for your Eloquent Model user specific fields. This package automatically inserts/updates an user id on your table on who created, last updated and deleted the record.

Install
-------

[](#install)

1. Add repositories in composer.json

```
"repositories": [
   {
     "url": "https://github.com/kayiwarahim/laravel-userstamps.git",

      "type": "git"
    }
 ],

```

2. Add the package name in `composer.json` require section:
    - For Laravel 5.x use [v1.0.1](https://github.com/hrshadhin/laravel-userstamps/releases/tag/v1.0.1)

    ```
     "hrshadhin/laravel-userstamps": "^1.0.0"

    ```

    - For Laravel 6.x use [v2.0.1](https://github.com/hrshadhin/laravel-userstamps/releases/tag/v2.0.1)

    ```
     "hrshadhin/laravel-userstamps": "^2.0.0"

    ```

    - For Laravel 7.x use [v3.0.0](https://github.com/hrshadhin/laravel-userstamps/releases/tag/v3.0.0)

    ```
     "hrshadhin/laravel-userstamps": "^3.0.0"

    ```

    - For Laravel 8.x use [v4.0.0](https://github.com/hrshadhin/laravel-userstamps/releases/tag/v4.0.0)

    ```
     "hrshadhin/laravel-userstamps": "^4.0.0"

    ```

    - For Laravel 9.x use [v5.0.0](https://github.com/hrshadhin/laravel-userstamps/releases/tag/v5.0.0)

    ```
     "hrshadhin/laravel-userstamps": "^5.0.0"

    ```

    - For Laravel 10.x use [v6.0.0](https://github.com/kayiwarahim/laravel-userstamps/releases/tag/v5.0.0)

    ```
     "kayiwarahim/laravel-userstamps": "^6.0.0"

    ```

Usage
-----

[](#usage)

Update your model's migration and add `created_by`, `updated_by` and `deleted_by` field using the `userstamps()` blueprint macro.

```
Schema::create('users', function (Blueprint $table) {
    $table->increments('id');
    $table->string('name', 100);
    $table->userstamps();
    $table->timestamps();
});
```

Then use `UserstampsTrait` on your model.

```
namespace App;

use Hrshadhin\Userstamps\UserstampsTrait;

class User extends Model
{
    use UserstampsTrait;
}
```

Dropping columns
----------------

[](#dropping-columns)

You can drop auditable columns using `dropUserstamps()` method.

```
Schema::create('users', function (Blueprint $table) {
    $table->dropUserstamps();
});
```

And your done!

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance44

Moderate activity, may be stable

Popularity1

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 73.1% 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

438d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e18e5e37e101e1351fcbcaa6bc463d2fc839a975baecbd407300319ebdc32e04?d=identicon)[kayiwarahim](/maintainers/kayiwarahim)

---

Top Contributors

[![hrshadhin](https://avatars.githubusercontent.com/u/2318901?v=4)](https://github.com/hrshadhin "hrshadhin (19 commits)")[![kayiwarahim](https://avatars.githubusercontent.com/u/145837787?v=4)](https://github.com/kayiwarahim "kayiwarahim (5 commits)")[![b4oshany](https://avatars.githubusercontent.com/u/1830494?v=4)](https://github.com/b4oshany "b4oshany (1 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

laraveleloquentuserstampscreated\_byupdated\_bydeleted\_byhrshadhinkayiwarahim

### Embed Badge

![Health badge](/badges/kayiwarahim-laravel-userstamps/health.svg)

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

###  Alternatives

[wildside/userstamps

Laravel Userstamps provides an Eloquent trait which automatically maintains `created\_by` and `updated\_by` columns on your model, populated by the currently authenticated user in your application.

7511.7M13](/packages/wildside-userstamps)[watson/validating

Eloquent model validating trait.

9723.3M47](/packages/watson-validating)[cybercog/laravel-love

Make Laravel Eloquent models reactable with any type of emotions in a minutes!

1.2k302.7k1](/packages/cybercog-laravel-love)[cviebrock/eloquent-taggable

Easy ability to tag your Eloquent models in Laravel.

567694.8k3](/packages/cviebrock-eloquent-taggable)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2121.2M13](/packages/reedware-laravel-relation-joins)[toponepercent/baum

Baum is an implementation of the Nested Set pattern for Eloquent models.

3154.7k](/packages/toponepercent-baum)

PHPackages © 2026

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