A drop-in Laravel activity logger. Add audit trails to any existing app in minutes — no config, no boilerplate, no headaches.
Production-tested in a live government voucher management system. Handles millions of rows without breaking a sweat.
ActivityLogger::log('ACTION', 'message') — works anywhere in your app. No setup, no service binding needed.
Attach log.activity to any route group and every authenticated request is logged automatically.
Query by action type, user ID, and date range out of the box. Includes an actionTypes() endpoint for dropdown population.
Migration includes indexes on action, user_id, and action_date. Fast at millions of rows.
Every log entry links to the user who triggered it. Load with ->with('user') for names in your UI.
Logs are never permanently lost. Deleted entries stay in the database and can be restored for compliance audits.
A second model for tracking per-step process trails. Ideal for multi-step workflows with ordered states.
Log as any user — not just the authenticated one. Perfect for admin actions done on behalf of clients.
Copy src/ into your app, run php artisan migrate, and you're logging. No composer package, no config file.
Click through the tabs to explore usage, query patterns, and the filter API.
Copy src/ into your Laravel app/ directory. That's it.
Works with 8.1, 8.2, 8.3, 8.4
Compatible with Laravel 10 & 11
Any MySQL-compatible database
Pure Laravel — nothing extra to install
One-time purchase. Yours forever. Use in unlimited projects with Extended License.