When using the Laravel Auditing package, you may run into situations where audit records are created during test setup, complicating your assertions. Here's how I handled it to keep my tests clean.
masteringlaravel.io/daily/2025-11-24-a-deeper-dive-into-how-laravel-auditing-works-during-tests
Back