PHPackages                             laragrad/eloquent-model-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. laragrad/eloquent-model-userstamps

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

laragrad/eloquent-model-userstamps
==================================

v1.2(4y ago)04322MITPHPPHP ^7.2|^8.0

Since Jun 2Pushed 4y ago1 watchersCompare

[ Source](https://github.com/laragrad/eloquent-model-userstamps)[ Packagist](https://packagist.org/packages/laragrad/eloquent-model-userstamps)[ RSS](/packages/laragrad-eloquent-model-userstamps/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)DependenciesVersions (4)Used By (2)

laragrad/eloquent-model-userstamps
==================================

[](#laragradeloquent-model-userstamps)

This package provides a trait for Model to fill userstamp fields.

Installing
----------

[](#installing)

Run command in console

```
composer require laragrad/eloquent-model-userstamps

```

Using
-----

[](#using)

### Preparing table

[](#preparing-table)

Add into your model's table migration userstamp fields. It's type must be same as type of user id. You can use default **created\_by**, **updated\_by**, **deleted\_by** field names or any other.

You can use `Laragrad\Support\Userstamps` `methods addUserstampColumns()` to add or `dropUserstampColumns()` drop columns in your migration file.

For example, to add userstamps columns:

```
