PHPackages                             sharifuddin/laravel-smart-model-tracker - 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. sharifuddin/laravel-smart-model-tracker

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

sharifuddin/laravel-smart-model-tracker
=======================================

Automatically handles created\_by, updated\_by, created\_at, updated\_at, and deleted\_by for Eloquent models. Seamless user tracking with zero boilerplate code.

v1.0.0(6mo ago)05MITPHPPHP ^8.0

Since Nov 2Pushed 6mo agoCompare

[ Source](https://github.com/sharifWebDev/laravel-smart-model-tracker)[ Packagist](https://packagist.org/packages/sharifuddin/laravel-smart-model-tracker)[ Docs](https://github.com/sharifuddin/laravel-smart-model-tracker)[ RSS](/packages/sharifuddin-laravel-smart-model-tracker/feed)WikiDiscussions main Synced 1mo ago

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

Laravel Smart Model Tracker
===========================

[](#laravel-smart-model-tracker)

[![License: MIT](https://camo.githubusercontent.com/08cef40a9105b6526ca22088bc514fbfdbc9aac1ddbf8d4e6c750e3a88a44dca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667)](LICENSE.md)[![PHP Version](https://camo.githubusercontent.com/bc892f093eb4aa7a246c8f759b33e001cc91a27f6d7673667293b9be3d08c96b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f736861726966756464696e2f6c61726176656c2d736d6172742d6d6f64656c2d747261636b6572)](https://packagist.org/packages/sharifuddin/laravel-smart-model-tracker)[![Latest Version](https://camo.githubusercontent.com/0fcb96b06d21df8de6d88e6e7283dfe94e5015dc4a529b84d8f8673e484e935f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736861726966756464696e2f6c61726176656c2d736d6172742d6d6f64656c2d747261636b6572)](https://packagist.org/packages/sharifuddin/laravel-smart-model-tracker)[![Total Downloads](https://camo.githubusercontent.com/71f5b39953dd35e4b77c64807f9e838f0dc807e6df9b553d008238591097e623/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736861726966756464696e2f6c61726176656c2d736d6172742d6d6f64656c2d747261636b6572)](https://packagist.org/packages/sharifuddin/laravel-smart-model-tracker)

A professional, robust, and seamless user tracking package for Laravel Eloquent models. Automatically tracks created\_at, updated\_at, created\_by, updated\_by, and deleted\_by with zero boilerplate code.

✨ Features
----------

[](#-features)

🚀 Automatic Timestamp &amp; User Tracking - Handles created\_at, updated\_at, created\_by, updated\_by, deleted\_by

🔒 Multi-Guard Support - Works with any authentication guard

🔄 Soft Deletes Integration - Tracks who deleted models

🎯 Relationship Methods - Easy access to creator, updater, deleter

📊 Query Scopes - Filter by dates and users

🛡️ Error Resilient - Won't break your application on errors

⚡ Zero Configuration - Works out of the box

📦 PSR-4 Compliant - Professional code standards

🧪 Full Test Coverage - Reliable and well-tested

🔧 Laravel 8-12 Support - Full framework compatibility

📦 Installation
--------------

[](#-installation)

```
composer require sharifuddin/laravel-smart-model-tracker
```

🚀 Quick Start
-------------

[](#-quick-start)

**\_ Basic Usage \_****\_Add the trait to your Eloquent model: \_**

```
