mnarushevich/laravel-audit-logs

There is no license information available for the latest version (v0.0.2) of this package.

A Laravel package for audit logging

v0.0.2 2025-03-13 16:33 UTC

This package is auto-updated.

Last update: 2025-03-13 16:38:45 UTC


README

How to use

  1. Install the package via composer:
composer require mnarushevich/laravel-audit-logs
  1. Publish migrations:
php artisan vendor:publish --provider="MNarushevich\AuditLogs\AuditLogsServiceProvider" --tag="migrations"
  1. Publish config (optional):
php artisan vendor:publish --provider="MNarushevich\AuditLogs\AuditLogsServiceProvider" --tag="config"
  1. Run migrations:
php artisan migrate
  1. In your model use MNarushevich\AuditLogs\Traits\HasAuditLogs trait:
use MNarushevich\AuditLogs\Traits\HasAuditLogs;