Download the PHP package rashidsiaghi/laravel-activitylog without Composer
On this page you can find all versions of the php package rashidsiaghi/laravel-activitylog. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rashidsiaghi/laravel-activitylog
More information about rashidsiaghi/laravel-activitylog
Files in rashidsiaghi/laravel-activitylog
Package laravel-activitylog
Short Description Custom activity log system based on Spatie Laravel Activitylog
License MIT
Homepage https://github.com/rashid202445/activitylog
Informations about the package laravel-activitylog
RashidSiaghi Activity Logger (Based on Spatie Laravel Activitylog)
This package is a customized activity logging system for Laravel, extending and modifying the excellent Spatie Laravel Activitylog.
✅ Features
- Logs model attributes, including nested and relationship changes.
- Adds tracking for device info, IP address, browser, and user role.
- Customizable pipelines and event descriptions.
- Built-in support for
hasMany
,belongsToMany
, andmorphMany
relationships.
📦 Based On
Log activity inside your Laravel app
The rashidsiaghi/laravel-activitylog
package provides easy to use functions to log the activities of the users of your app. It can also automatically log model events.
The Package stores all activity in the activity_log
table.
Here's a demo of how you can use it:
You can retrieve all activity using the rashidsiaghi\Activitylog\Models\Activity
model.
Here's a more advanced example:
Here's an example on event logging.
Calling $activity->changes()
will return this array:
Attribution
This activity logging system is based on rashidsiaghi Laravel Activitylog, released under the MIT License.
Modifications have been made to support relationship logging, trait extension, and additional device/user context features.
This code is derived from and heavily inspired by spatie/laravel-activitylog, originally created by Spatie.
We thank the Spatie team for their excellent work, which serves as the foundation of this customized version.
Installation
You can install the package via composer:
The package will automatically register itself.
You can publish the migration with:
Note: The default migration assumes you are using integers for your model IDs. If you are using UUIDs, or some other format, adjust the format of the subject_id and causer_id fields in the published migration before continuing.
After publishing the migration you can create the activity_log
table by running the migrations:
You can optionally publish the config file with:
Changelog
Please see CHANGELOG for more information about recent changes.
Upgrading
Please see UPGRADING for details.
Testing
Contributing
Please see CONTRIBUTING for details.
🔒 License
This project and all modified code are released under the MIT License.
Original copyright © Spatie.
All versions of laravel-activitylog with dependencies
illuminate/config Version ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0
illuminate/database Version ^8.69 || ^9.27 || ^10.0 || ^11.0 || ^12.0
illuminate/support Version ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0
spatie/laravel-package-tools Version ^1.6.3