PHPackages                             labrodev/laravel-trackable - 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. labrodev/laravel-trackable

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

labrodev/laravel-trackable
==========================

Laravel package providing a reusable trait that automatically assigns a document number to Eloquent models upon creation.

v1.0.0(1y ago)00MITPHPPHP &gt;=8.1

Since Nov 10Pushed 1y ago1 watchersCompare

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

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

Trackable for Laravel
=====================

[](#trackable-for-laravel)

The ModelHasActorTracker trait provides automatic tracking of the user who creates or updates a model record by setting created\_by and updated\_by attributes. This trait is useful in applications that require auditing changes and maintaining a record of the users responsible for creating and updating model instances.

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

[](#installation)

To install the package, run the following command in your Laravel project:

```
composer require labrodev/laravel-trackable
```

Requirements
------------

[](#requirements)

- PHP 8.1 or higher

Configuration
-------------

[](#configuration)

After installing the package, no additional configuration is needed to start using the UUID trait in your models.

Usage
-----

[](#usage)

To use the `ModelHasActorTracker` trait, simply include it in your Eloquent model:

```
