You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Laravel Audit Logger** is a powerful and flexible package designed to provide detailed audit logging for Laravel applications. It enables tracking of all changes to your Eloquent models, ensuring compliance with regulatory requirements, aiding in debugging, and maintaining data integrity. Built with modern PHP and Laravel practices, this package adheres to strict typing, PSR-12 coding standards, and leverages dependency injection for maximum testability and maintainability.
18
+
**Laravel Audit Logger** is a powerful and flexible package designed to provide detailed audit logging for Laravel applications. It enables tracking of all changes to your Eloquent models with comprehensive source tracking, ensuring compliance with regulatory requirements, aiding in debugging, and maintaining data integrity. Built with modern PHP and Laravel practices, this package adheres to strict typing, PSR-12 coding standards, and leverages dependency injection for maximum testability and maintainability.
19
+
20
+
The package uses a high-performance direct logging architecture while maintaining flexibility through optional event integration, making it suitable for both small applications and enterprise-scale systems.
@@ -400,6 +513,15 @@ When writing tests for your application, ensure you cover audit logging behavior
400
513
-**Audit Tables Not Created**: Ensure `'auto_migration' => true` in your configuration. If disabled, manually create tables using `AuditLogger::driver()->createStorageForEntity(Model::class)`.
401
514
-**Missing Logs**: Verify that fields aren't excluded globally or in the model, and ensure auditing isn't disabled for the operation.
402
515
-**Causer Not Recorded**: Confirm that authentication is set up correctly and the user is logged in during the operation.
516
+
-**Source Field Empty**: The source field should automatically populate. If it's null, check that:
517
+
- For console commands: `$_SERVER['argv']` is available and contains the command name
518
+
- For HTTP requests: The route is properly registered and accessible via `Request::route()`
519
+
- The application is running in the expected context (console vs. HTTP)
520
+
-**Migration Issues**: If upgrading from a previous version, ensure your existing audit tables include the `source` column. You may need to add it manually:
0 commit comments