PHPackages                             jcrodsolutions/laravel-user-stamp - 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. jcrodsolutions/laravel-user-stamp

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

jcrodsolutions/laravel-user-stamp
=================================

Enables automatic user stamp on created\_by and updated\_by fields within a model.

v1.0.7(1y ago)1134MITPHPPHP ~8.0

Since Jul 5Pushed 1y ago1 watchersCompare

[ Source](https://github.com/jcrodsolutions/laravel-user-stamp)[ Packagist](https://packagist.org/packages/jcrodsolutions/laravel-user-stamp)[ RSS](/packages/jcrodsolutions-laravel-user-stamp/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)DependenciesVersions (9)Used By (0)

Laravel User Stamp✒️
====================

[](#laravel-user-stamp️)

[![PHP Version](https://camo.githubusercontent.com/35596f50e5b6ff76c87f1f8a74b9d66a0c8d7174b96a4cf0ef41d5223ea3a049/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6a63726f64736f6c7574696f6e732f6c61726176656c2d757365722d7374616d702e737667)](https://packagist.org/packages/jcrodsolutions/laravel-user-stamp)[![Packagist Version](https://camo.githubusercontent.com/be94db7a4bf6ede23856868e8a4a7fd5fb23cf7274a3d2cac5841341ce48db44/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a63726f64736f6c7574696f6e732f6c61726176656c2d757365722d7374616d702e737667)](https://packagist.org/packages/jcrodsolutions/laravel-user-stamp)[![Packagist](https://camo.githubusercontent.com/0ed6d338346211e6931863849598738fb1ae2768e172432d038d10f80a59fc4f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a63726f64736f6c7574696f6e732f6c61726176656c2d757365722d7374616d702e737667)](https://packagist.org/packages/jcrodsolutions/laravel-user-stamp)[![Github](https://camo.githubusercontent.com/23317fd512c7f6ea8d04dfe661054ce8a39af8ec43bf49d4604ca39c460643ce/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6a63726f64736f6c7574696f6e732f6c61726176656c2d757365722d7374616d702e737667)](https://packagist.org/packages/jcrodsolutions/laravel-user-stamp)

Enables automatic user stamp on created\_by and updated\_by fields within a model.

Usage
-----

[](#usage)

Inside any model having the created\_by and/or updated\_by fields you should use the trait as follows.

```
use Jcrodsolutions\LaravelUserStamp\App\Traits\UserStampTrait;
use Illuminate\Database\Eloquent\Model;

class  MyModel  extends  Model
{
	use  UserStampTrait;
	protected  $fillable = ['codename','name','created_by','updated_by'];
	// ...
}

```

Global defaults
---------------

[](#global-defaults)

Globally, the default field names the trait will try to populate are

- active
- created\_by
- updated\_by

Whenever you want to change this just publish the vendor config file.

```
myproject# php artisan vendor:publish

```

Proceed by selecting the provider "Provider: Jcrodsolutions\\LaravelUserStamp\\UserStampServiceProvider".

Custom field names in a model
-----------------------------

[](#custom-field-names-in-a-model)

If you need to customize any of the fields in the model you should override the defaults by defining protected variables as the following example

```

use Jcrodsolutions\LaravelUserStamp\App\Traits\UserStampTrait;
use Illuminate\Database\Eloquent\Model;

class  MyModel  extends  Model
{
	use  UserStampTrait;
	protected  $fillable = ['codename','name','created_by','updated_by'];
	protected  static  $active = 'activo';
	protected  static  $createdBy = 'creado_por';
	protected  static  $updatedBy = 'actualizado_por';

	//...
}

```

License
-------

[](#license)

MIT.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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 ~13 days

Total

8

Last Release

581d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/359ba29de280492d565c22ac4f84b11320e8693150502e1e297fb0a620b118cb?d=identicon)[jcrodsolutions](/maintainers/jcrodsolutions)

---

Top Contributors

[![jcrodriguezt](https://avatars.githubusercontent.com/u/15658484?v=4)](https://github.com/jcrodriguezt "jcrodriguezt (3 commits)")

### Embed Badge

![Health badge](/badges/jcrodsolutions-laravel-user-stamp/health.svg)

```
[![Health](https://phpackages.com/badges/jcrodsolutions-laravel-user-stamp/health.svg)](https://phpackages.com/packages/jcrodsolutions-laravel-user-stamp)
```

PHPackages © 2026

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