Ana Sayfa / Kod ve Scriptler / Laravel Audit Trail Package - Activity Logger

Laravel Audit Trail Package - Activity Logger

Laravel uygulamaları için eksiksiz denetim izi. Her kullanıcı işlemini kullanıcıya, işleme ve tarihe göre filtrelenebilir şekilde kaydeder. Otomatik kayıt ara katmanı dahildir.

  • Yayın tarihi7 Haziran 2026
  • Nerede çalışırPHP 8.1, PHP 8.2, PHP 8.3
  • Paket içeriği.php, .sql
  • Son güncelleme7 Haziran 2026
  • Canlı demoVar
Laravel Audit Trail Package - Activity Logger

Overview

Add a complete audit trail to any Laravel application in minutes. Track every action your users take — who did what, when, and to which record — with zero boilerplate.

What's included: - ActivityLogger service class — log any action with a single method call - ActivityLog Eloquent model with relationships - AuditLogController with filtering by action type, user, and date range - Optional auto-log middleware — automatically records every authenticated request - Indexed migration optimized for performance at scale

Why this stands out: Unlike generic logging packages, this gives you a ready-to-use controller and filterable API out of the box. No configuration headaches.

Use cases: - Admin panels that need full user activity history - Financial or healthcare apps requiring compliance logs - SaaS platforms tracking feature usage per user - Debugging production issues by replaying user actions

Drop in, run the migration, register the middleware (optional), and you have a working audit log in under 10 minutes.

Features

- ActivityLogger service for manual action logging - ActivityLog model with user relationship - AuditLogController with list, filter, and show endpoints - Filter logs by action type, user ID, and date range - Optional auto-log middleware for automatic request logging - Indexed migration for fast queries at scale - Soft-delete support on log entries - Works with Laravel 10 and 11 - PSR-4 autoloaded, zero external dependencies

Requirements

- PHP 8.1 or higher - Laravel 10 or Laravel 11 - MySQL 5.7+ or MariaDB 10.3+ - Composer