Download the PHP package sharifuddin/laravel-smart-model-tracker without Composer
On this page you can find all versions of the php package sharifuddin/laravel-smart-model-tracker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sharifuddin/laravel-smart-model-tracker
More information about sharifuddin/laravel-smart-model-tracker
Files in sharifuddin/laravel-smart-model-tracker
Package laravel-smart-model-tracker
Short Description Automatically handles created_by, updated_by, created_at, updated_at, and deleted_by for Eloquent models. Seamless user tracking with zero boilerplate code.
License MIT
Homepage https://github.com/sharifuddin/laravel-smart-model-tracker
Informations about the package laravel-smart-model-tracker
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
๐ Automatic Timestamp & 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
๐ Quick Start
Basic Usage Add the trait to your Eloquent model:
With Soft Deletes
Database Migration
Create a migration with tracking columns:
๐ก Usage Examples
Automatic Tracking
Relationships
Query Scopes
Advanced Features
Configuration
Publish the configuration file:
config/smart-model-tracker.php
Customization
Custom Column Names
Using the Facade
Multiple Authentication Guards
The package automatically works with multiple guards:
Testing
Run with coverage:
Code Quality
Fix code style:
๐ง Compatibility
Laravel Version PHP Version Package Version 12.x 8.2+ ^1.0 11.x 8.2+ ^1.0 10.x 8.1+ ^1.0 9.x 8.0+ ^1.0 8.x 8.0+ ^1.0
๐ Changelog
Please see CHANGELOG.md for details.
๐ก๏ธ Security
If you discover any security-related issues, please email [email protected] instead of using the issue tracker.
๐ License
his package is open-sourced software licensed under the MIT license.
๐จโ๐ป Author
Sharif Uddin
Email: [email protected]
Website: https://sharifwebdev.github.io/
GitHub: @sharifwebdev
๐ Acknowledgments Inspired by the need for simple, robust model tracking in Laravel applications
Thanks to the Laravel community for best practices and inspiration