motomedialab/simple-laravel-audit
creating, updating, deleting) or custom events, making it adaptable to most audit use cases.audit_logs table may grow large over time, requiring eventual optimization (e.g., archiving, partitioning).audit_logs table). Schema is simple but may need adjustments for high-cardinality fields (e.g., old_values, new_values).composer require motomedialab/simple-laravel-audit
php artisan migrate
User, Post).php artisan vendor:publish --provider="Motomedialab\SimpleLaravelAudit\SimpleLaravelAuditServiceProvider").illuminate/events updates).Resource system. May need a custom resource for audit logs:
php artisan make:filament-resource AuditLogResource --generate
auditable_type, auditable_id, and created_at for large datasets.audit_logs table size.motomedialab). Monitor for activity (last release: 2026-01-04).AuditLog::latest()->take(100)) are efficient, but complex queries (e.g., joins, aggregations) may slow down.audit_logs table can bloat quickly. Plan for:
SoftDeletes).// app/Console/Commands/CleanupAuditLogs.php
use Illuminate\Support\Facades\DB;
DB::table('audit_logs')->where('created_at', '<', now()->
How can I help you explore Laravel packages today?